Learn R Programming

mlVAR (version 0.5.2)

plot.mlVAR0: Plot Method for mlVAR0

Description

The function plot.mlVAR0 plots estimated model coefficients as a network using qgraph.

FUNCTION IS DEPRECATED AND WILL BE REMOVED SOON.

Usage

# S3 method for mlVAR0
plot(x, type = c("fixed", "SD", "subject"), lag = 1,
                 subject, order, onlySig = FALSE, alpha, ...)

Arguments

x

A mlVAR0 object obtained through the mlVAR0-function

type

Indicates whether to plot a network of fixed effects coefficients ("fixed"), the standard deviations of the random effect terms ("SD") or an individual subject's random effects network ("subject").

lag

Vector indicating the lags to include

subject

If type="subject", vector indicating the ID subject number

order

Order of nodes

onlySig

Logical. Set to TRUE to only plot significant fixed effects.

alpha

Significance level to test edges at if onlySig == TRUE. Defaults to Bonferonni corrected alpha level of 0.05 divided by the number of fixed effects.

...

Arguments sent to qgraph

Author

Sacha Epskamp (mail@sachaepskamp.com), Marie K. Deserno (m.k.deserno@uva.nl) and Laura F. Bringmann (laura.bringmann@ppw.kuleuven.be)