compareVAR {modnets}R Documentation

Compare two to three lmerVAR models

Description

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.

Usage

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.

Details

Performs individual nodewise model comparisons across multiple lmerVAR models.

Value

Table of ANOVA results comparing two or three models.

See Also

lmerVAR

Examples


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

compareVAR(fit1, fit2)


[Package modnets version 0.9.0 Index]