Skip to contents

R-CMD-check Codecov test coverage

Installation

You can install from Github with:

# install.packages("devtools")
devtools::install_github("nripstein/DAST")

or the development branch from

devtools::install_github("nripstein/DAST", ref = "development")

Current Workflow

# 1) Prepare multi-time data
dat <- prepare_data_mmap(
  polygon_shapefile_list = polygon_list,
  covariate_rasters_list = covariate_list,
  aggregation_rasters_list = agg_list
)

# 2) Fit model (TMB or AGHQ)
fit <- disag_model_mmap(dat, engine = "AGHQ")

# 3) Predict
pred <- predict(fit)

Passing Engine-Specific Arguments

Use engine.args as the preferred interface for engine-specific controls.

# AGHQ controls
fit_aghq <- disag_model_mmap(
  dat,
  engine = "AGHQ",
  engine.args = list(
    aghq_k = 2,
    optimizer = "BFGS"
  )
)

# TMB controls
fit_tmb <- disag_model_mmap(
  dat,
  engine = "TMB",
  engine.args = list(
    iterations = 1000,
    hess_control_ndeps = 1e-4
  )
)