Last chance! 50% off unlimited learning
Sale ends in
Computes R2 and LOO-adjusted R2.
# S3 method for stanreg
get_R2(fit, silent = FALSE, ...)A stanreg model.
If R2 not available, throw warning.
Arguments passed to or from other methods.
# NOT RUN {
library(psycho)
library(rstanarm)
fit <- rstanarm::stan_glm(Adjusting ~ Tolerating, data = psycho::affective)
get_R2(fit)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab