Performs comprehensive checks on a Stan data list to ensure internal consistency before passing to CmdStan. Verifies field existence, dimensional consistency, value ranges, and cross-field coherence.
Arguments
- data_list
An object of class
"hbb_data", as returned byprepare_stan_data().
See also
Other data:
prepare_stan_data()
Examples
data(nsece_synth_small, package = "hurdlebb")
f <- hbb_formula(y | trials(n_trial) ~ poverty + urban)
d <- prepare_stan_data(f, nsece_synth_small)
validate_hbb_data(d)