predictability: Network Predictability (R2)

Description Usage Arguments Value Note References Examples

View source: R/predictability.R

Description

Network Predictability (R2)

Usage

1
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 for each node.

Note

Predictability is variance explained for each node in the network \insertCiteHaslbeck2018GGMnonreg.

References

\insertAllCited

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# data
Y <- ptsd

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

# predictability
r2 <- predictability(fit)

# print
r2

donaldRwilliams/GGMnonreg documentation built on Nov. 13, 2021, 9:57 a.m.