if (FALSE) { # require("rstanarm") && require("rstantools")
model <- suppressWarnings(rstanarm::stan_glm(
mpg ~ wt + cyl,
data = mtcars,
chains = 1,
iter = 500,
refresh = 0,
show_messages = FALSE
))
r2_loo(model)
}
Run the code above in your browser using DataLab