# Create a prior object (does not require Stan)
my_prior <- clm_prior(beta_sd = 2, c_sd = 5)
print(my_prior)
if (FALSE) {
# Examples below require CmdStan and compiled Stan models
data(wine, package = "ordinal")
# Default priors (no customization needed)
fit <- clm_stan(rating ~ temp, data = wine,
chains = 2, iter = 500, warmup = 250, refresh = 0)
# Custom prior for regression coefficients
fit2 <- clm_stan(rating ~ temp, data = wine,
prior = clm_prior(beta_sd = 1),
chains = 2, iter = 500, warmup = 250, refresh = 0)
}
Run the code above in your browser using DataLab