powered by
Compute Bayesian R2. In contrast to the functions mse, mae, etc., this can be used to compare predictabiltiy between nodes within a network or between networks. Also, only posterior predictive R2 is implemented.
mse
mae
bayes_R2(object, cred = 0.95, iter = 1000, cores = 2, ...)
object of class estimate
estimate
credible interval width used for selecting the network
iterations used for computing R2
number of cores for parallel computing
currently ignored
object of classes bayes_R2 and metric
bayes_R2
metric
# NOT RUN { # data Y <- subset(tas, gender == "M")[,-ncol(tas)] # fit model fit <- estimate(Y) # bayes R2 r2 <- bayes_R2(fit, iter = 50) # print summary r2 # plot plot(r2) # }
Run the code above in your browser using DataLab