Perform ANOVA on Multiple glmmTMB Models in Parallel
anovaParallel.Rd
This function performs analysis of variance (ANOVA) on a list of glmmTMB
models in parallel for different groups specified in the list. It returns a list
of ANOVA results for each group.
Arguments
- list_tmb
A list of
glmmTMB
models, with model names corresponding to the groups.- ...
Additional arguments passed to
anova
function.
Examples
# Perform ANOVA
data(iris)
list_tmb<- fitModelParallel( Sepal.Length ~ Sepal.Width + Petal.Length,
data = iris, group_by = "Species", n.cores = 1 )
#> Log file location: /tmp/RtmpS86cq0/htrfit.log
#> CPU(s) number : 1
#> Cluster type : PSOCK
anov_res <- anovaParallel(list_tmb , type = "III")
#> 2024-05-24 13:21:14.905792 error for group setosa : no applicable method for 'vcov' applied to an object of class "glmmTMB"
#> 2024-05-24 13:21:14.906182 error for group versicolor : no applicable method for 'vcov' applied to an object of class "glmmTMB"
#> 2024-05-24 13:21:14.906436 error for group virginica : no applicable method for 'vcov' applied to an object of class "glmmTMB"