powered by
Compute nodewise predictability or Bayesian variance explained @R2 @gelman_r2_2019BGGM. In the context of GGMs, this method was described in Williams2019;textualBGGM.
predictability( object, select = FALSE, cred = 0.95, BF_cut = 3, iter = NULL, progress = TRUE, ... )
An object of classes bayes_R2 and metric, including
bayes_R2
metric
scores A list containing the posterior samples of R2. The is one element
scores
for each node.
object of class estimate or explore
estimate
explore
logical. Should the graph be selected ? The default is currently FALSE.
FALSE
numeric. credible interval between 0 and 1 (default is 0.95) that is used for selecting the graph.
numeric. evidentiary threshold (default is 3).
interger. iterations (posterior samples) used for computing R2.
Logical. Should a progress bar be included (defaults to TRUE) ?
TRUE
currently ignored.
# \donttest{ # data Y <- ptsd[,1:5] fit <- estimate(Y, iter = 250, progress = FALSE) r2 <- predictability(fit, select = TRUE, iter = 250, progress = FALSE) # summary r2 # }
Run the code above in your browser using DataLab