if (FALSE) { # require("rstanarm")
# \donttest{
library(bayestestR)
# rstanarm models
# -----------------------------------------------
model <- rstanarm::stan_glm(mpg ~ wt, data = mtcars)
sensitivity_to_prior(model)
model <- rstanarm::stan_glm(mpg ~ wt + cyl, data = mtcars)
sensitivity_to_prior(model, index = c("Median", "MAP"))
# }
}
Run the code above in your browser using DataLab