Creates a Stan data list for cumulative link models with symmetric
thresholds centered at 0: c[k] = -c[K-k]
prepare_stan_data_symmetric(
formula,
data,
link = "logit",
link_param = NULL,
prior_beta_sd = 2.5,
prior_cpos_sd = 5
)A list suitable for passing to CmdStan (clm_symmetric.stan)
A formula specifying the model
A data frame containing the variables
Link function name
A list of link parameters (for flexible links)
Prior SD for regression coefficients (default: 2.5)
Prior SD for positive thresholds (default: 5)
Examples:
K=4 (3 thresholds): c = (-a, 0, a)
K=5 (4 thresholds): c = (-b, -a, a, b)
K=6 (5 thresholds): c = (-b, -a, 0, a, b)