prepare_adfun: Make a TMB ADFun

View source: R/prepare_adfun.R

prepare_adfunR Documentation

Make a TMB ADFun

Description

Verify data, parameters, and map, then contruct the ADFun.

Usage

prepare_adfun(
  data,
  parameters,
  map,
  random,
  ...,
  DLL = "spatq",
  silent = TRUE,
  runSymbolicAnalysis = TRUE,
  normalize = FALSE
)

Arguments

data

Data list, as from prepare_data

parameters

Parameter list, as from prepare_pars

map

A map list, as from prepare_map

random

A character vector of parameters to be marginalized, as from prepare_random

...

Additional arguments to pass to MakeADFun

DLL

TMB model to use; only used for debugging

silent

Output TMB progress?

runSymbolicAnalysis

Use Metis reorderings? (Requires special installation of TMB; see documentation.)

normalize

Normalize GMRF likelihoods?

Value

A TMB ADFun suitable for optimization

Author(s)

John Best


jkbest2/spatq documentation built on Sept. 22, 2022, 3:22 a.m.