Skip to content
Snippets Groups Projects
anovaParallel.Rd 919 B
Newer Older
Arnaud Duvermy's avatar
Arnaud Duvermy committed
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/anova.R
\name{anovaParallel}
\alias{anovaParallel}
\title{Perform ANOVA on Multiple glmmTMB Models in Parallel}
\usage{
Arnaud Duvermy's avatar
Arnaud Duvermy committed
anovaParallel(list_tmb, ...)
Arnaud Duvermy's avatar
Arnaud Duvermy committed
}
\arguments{
Arnaud Duvermy's avatar
Arnaud Duvermy committed
\item{list_tmb}{A list of \code{glmmTMB} models, with model names corresponding to the groups.}
Arnaud Duvermy's avatar
Arnaud Duvermy committed

\item{...}{Additional arguments passed to \code{\link[stats]{anova}} function.}
}
\value{
A list of ANOVA results for each group.
}
\description{
This function performs analysis of variance (ANOVA) on a list of \code{glmmTMB}
models in parallel for different groups specified in the list. It returns a list
of ANOVA results for each group.
}
\examples{
# Perform ANOVA
data(iris)
Arnaud Duvermy's avatar
Arnaud Duvermy committed
list_tmb<- fitModelParallel( Sepal.Length ~ Sepal.Width  + Petal.Length, 
Arnaud Duvermy's avatar
Arnaud Duvermy committed
                         data = iris, group_by = "Species", n.cores = 1 )
Arnaud Duvermy's avatar
Arnaud Duvermy committed
anov_res <- anovaParallel(list_tmb , type = "III")
Arnaud Duvermy's avatar
Arnaud Duvermy committed
}