predictability {GGMnonreg}R Documentation

Network Predictability (R2)

Description

Network Predictability (R2)

Usage

predictability(x, ci = 0.95)

Arguments

x

An object of class ggm_inference

ci

Numeric. The confidence interval to be computed (defaults to 0.95).

Value

An object of class predictability, including a matrix of R2.

Note

Predictability is variance explained for each node in the network (Haslbeck and Waldorp 2018).

References

Haslbeck JM, Waldorp LJ (2018). “How well do network models predict observations? On the importance of predictability in network models.” Behavior Research Methods, 50(2), 853–861. ISSN 15543528, doi: 10.3758/s13428-017-0910-x, 1610.09108, https://doi.org/10.3758/s13428-017-0910-x.

Examples

# data
Y <- ptsd

# estimate graph
fit <- ggm_inference(Y, boot = FALSE)

# predictability
r2 <- predictability(fit)

# print
r2


[Package GGMnonreg version 1.0.0 Index]