Skip to content
Snippets Groups Projects
launchUpdate.Rd 928 B
Newer Older
Arnaud Duvermy's avatar
Arnaud Duvermy committed
% Generated by roxygen2: do not edit by hand
Arnaud Duvermy's avatar
Arnaud Duvermy committed
% Please edit documentation in R/update_fittedmodel.R
Arnaud Duvermy's avatar
Arnaud Duvermy committed
\name{launchUpdate}
\alias{launchUpdate}
\title{Launch the update process for a GLMNB model.}
\usage{
Arnaud Duvermy's avatar
Arnaud Duvermy committed
launchUpdate(glmm_obj, formula, ...)
Arnaud Duvermy's avatar
Arnaud Duvermy committed
}
\arguments{
Arnaud Duvermy's avatar
Arnaud Duvermy committed
\item{glmm_obj}{A glmmTMB object to be updated.}
Arnaud Duvermy's avatar
Arnaud Duvermy committed

\item{formula}{Formula for the updated GLMNB model.}

\item{...}{Additional arguments to be passed to the glmmTMB::glmmTMB function.}
}
\value{
An updated GLMNB model or NULL if an error occurs.
}
\description{
This function launches the update process for a GLMNB model, capturing and handling warnings and errors.
}
\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)
new_formula <- Sepal.Length ~ Sepal.Width 
updated_model <- launchUpdate(fitted_models[[1]], new_formula)
}