compareVAR function

Compare two to three lmerVAR models

Compare two to three lmerVAR models

Affords ANOVAs to compare two or three lmerVAR models. It is necessary to supply at least two different models for comparison, although a third can also be supplied if desired.

compareVAR(m1, m2, m3 = NULL, anova = NULL, type = "tempMods")

Arguments

  • m1: Output from lmerVAR.
  • m2: Output from another run of lmerVAR. Necessary to supp
  • m3: Output from a third run of lmerVAR. This is optional.
  • anova: If NULL, then the results of each nodewise comparison will be displayed. If numeric, then this indicates which nodewise comparison to home in on. anova = 1 will show the full ANOVA results for the first predictor. anova = 2 will show the full ANOVA results for the second predictor, etc.
  • type: Character string. Either "tempMods" or "contempMods". Determines whether to compare the temporal network outputs or the contemporaneous network outputs with ANOVA.

Returns

Table of ANOVA results comparing two or three models.

Details

Performs individual nodewise model comparisons across multiple lmerVAR models.

Examples

fit1 <- lmerVAR(mlgvarDat, temporal = "fixed", contemp = "orthogonal") fit2 <- lmerVAR(mlgvarDat, temporal = "orthogonal", contemp = "orthogonal") compareVAR(fit1, fit2)

See Also

lmerVAR

  • Maintainer: Trevor Swanson
  • License: GPL (>= 3)
  • Last published: 2021-10-01