wrapper_run_TMB: Function to run the model using TMB

View source: R/DA_functions.R

wrapper_run_TMBR Documentation

Function to run the model using TMB

Description

Function to run the model using TMB

Usage

wrapper_run_TMB(
  model,
  object = NULL,
  smart_init_vals = T,
  use_nlminb = F,
  initial_params = NULL
)

Arguments

model:

name of model: Options: fullRE_M, diagRE_M, FE_DM, fullRE_DM, fullRE_DMonefixedlambda, diagRE_DM, fullRE_DM_singlelambda, singleRE_DM, fullREhalfDM, diagRE_DM_singlelambda, FE_DM_singlelambda, fullRE_multinomial_REv2, diagRE_DM_patientlambda, fullRE_DM_patientlambda

object:

object of type exposures_inputTMB (including X, Y, Z). See <simplified_object> as an example.

smart_init_vals:

boolean, whether a fixed-effects multinomial regression should be run first to get initial estimates

use_nlminb:

boolean, whether <nlminb> should be used for estimation. Alternatively, <optim> is used

initial_params:

(optional) list of initial parameters for estimation


lm687/CompSign documentation built on Jan. 16, 2025, 11:25 p.m.