stat.glmm.parallel: Extracts statistical measures of interest in Generalized...

View source: R/stat.glmm.parallel2.R

stat.glmm.parallelR Documentation

Extracts statistical measures of interest in Generalized Linear Mixed Models in parallel

Description

Performs Generalized Linear Mixed Models tests in parallel

Usage

stat.glmm.parallel(
  ant,
  formula,
  family,
  oda = NULL,
  progress = FALSE,
  ncores = NULL,
  ...
)

Arguments

ant

an output of ANT function perm.net.nl with random factor stated, or output of ANT 'met' categories functions in which output of ANT functions perm.ds.focal, perm.ds.grp or perm.net.lk where multiple matrices have been used.

formula

two-sided linear formula object describing both the fixed-effects and random-effects part of the model, with the response on the left of a ~ operator and the terms, separated by + operators, on the right. Random-effects terms are distinguished by vertical bars (|) separating expressions for design matrices from grouping factors. Two vertical bars (||) can be used to specify multiple uncorrelated random effects for the same grouping variable. (Because of the way it is implemented, the ||-syntax works only for design matrices containing numeric (continuous) predictors; to fit models with independent categorical effects, see dummy or the lmer_alt function from the afex package.).

family

a GLM family, see glm and family.

oda

the original data frame of associations when argument ant is obtained with perm.ds.grp or perm.ds.focal ANT functions.

progress

a boolean indicating the visualization of the permutation process.

ncores

an integer indicating the number of jobs to create for parallelization.

...

Extra arguments for lmer or glmer function only.

Details

GLMM with permutation data.

Value

Returns a list of 3 elements :

  • An object of class merMod (more specifically, an object of subclass lmerMod or glmerMod), for which many methods are available (e.g. methods(class="merMod")).

  • A data frame if the estimates of the permuted models.

  • A vector of integers indicating the permutations that returned model errors or warnings (e.g. model convergence issues) and for which new permutations were done.

See Also

lmer or glmer


ANTs documentation built on July 3, 2022, 1:05 a.m.