The function plot.mlVAR
plots estimated model coefficients as networks using qgraph
. These can be three networks: temporal, contemporaneous and between-subjects effects, of which the latter two can be plotted as a correlation or a partial correlation network.
# S3 method for mlVAR
plot(x, type = c("temporal", "contemporaneous", "between"),
lag = 1, partial = TRUE, SD = FALSE, subject, order,
nonsig = c("default", "show", "hide", "dashed"), rule
= c("or", "and"), alpha = 0.05, onlySig = FALSE,
layout = "spring", verbose = TRUE, ...)
# S3 method for mlVARsim
plot(x, ...)
An mlVAR
object.
What network to plot?
The lag to use when type = "temporal"
Logical, should partial correlation matrices be plotted instead of correlation methods? Only used if type
is "contemporaneous"
or "between"
. Defaults to TRUE
.
Logical. Plot the standard-deviation of random effects instead of the fixed effect estimate?
Subject number. If not missing, will plot the network of a specific subject instead.
An optional character vector used to set the order of nodes in the network.
How to handle non-significant edges? Default will hide non-significant edges when p-values are available (fixed effects, partial correlations and temporal effects).
How to choose significance in node-wise estimated GGMs (contemporaneous and between-subjects). "or"
selects an edge as being significant if one node predicting the other is significant, and "and"
requires both predictions to be significant.
Alpha level to test for significance
Deprecated argument only used for backward competability.
The layout argument used by qgraph
Logical, should message be printed to the console?
Arguments sent to qgraph
Sacha Epskamp (mail@sachaepskamp.com)