Launch the update process for a GLMNB model.
launchUpdate.Rd
This function launches the update process for a GLMNB model, capturing and handling warnings and errors.
Arguments
- glmm_obj
A glmmTMB object to be updated.
- formula
Formula for the updated GLMNB model.
- ...
Additional arguments to be passed to the glmmTMB::glmmTMB function.
Examples
data(iris)
groups <- unique(iris$Species)
group_by <- "Species"
formula <- Sepal.Length ~ Sepal.Width + Petal.Length
fitted_models <- fitModelParallel(formula, iris, group_by, n.cores = 1)
#> Log file location: /tmp/RtmpS86cq0/htrfit.log
#> CPU(s) number : 1
#> Cluster type : PSOCK
new_formula <- Sepal.Length ~ Sepal.Width
updated_model <- launchUpdate(fitted_models[[1]], new_formula)