# NOT RUN {
if (require("rstanarm")) {
model <- stan_glm(
mpg ~ wt + gear,
data = mtcars,
chains = 2,
iter = 200,
refresh = 0
)
rope_range(model)
model <- stan_glm(vs ~ mpg, data = mtcars, family = "binomial", refresh = 0)
rope_range(model)
}
if (require("brms")) {
model <- brm(mpg ~ wt + cyl, data = mtcars)
rope_range(model)
}
if (require("BayesFactor")) {
bf <- ttestBF(x = rnorm(100, 1, 1))
rope_range(bf)
}
# }
Run the code above in your browser using DataLab