Updates an object inherting from class mb_model.
update_model(
model,
code = NULL,
gen_inits = NULL,
random_effects = NULL,
fixed = NULL,
derived = NULL,
select_data = NULL,
center = NULL,
scale = NULL,
modify_data = NULL,
nthin = NULL,
new_expr = NULL,
new_expr_vec = getOption("mb.new_expr_vec", FALSE),
modify_new_data = NULL,
drops = NULL,
...
)
The model to update.
A string of the model template or an object inheriting from class mb_code.
A single argument function taking the modified data and returning a named list of initial values.
A named list specifying the random effects and the associated factors.
A string of a regular expression specifying the fixed pars to monitor.
A character vector of the derived pars to monitor.
A named list specifying the columns to select and their associated classes and values as well as transformations and scaling options.
A character vector of the columns to center.
A character vector of the columns to scale (after centering).
A single argument function to modify the data (in list form) immediately prior to the analysis.
A count specifying the thinning interval.
A string of R code specifying the predictive relationships.
A flag specifying whether to vectorize the new_expr code.
A single argument function to modify new data (in list form) immediately prior to calculating new_expr.
A list of character vector of possible scalar pars to drop (fix at 0).
Unused arguments.
An object inheriting from class mb_model.