powered by
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.
"bayes_R2.stanreg"
# 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