choicedata 0.2.1
Ordered choice models now include an intercept by default.
generate_choice_parameters()now draws missing coefficients from a standard normal distribution instead of a normal distribution with variance 10.
choicedata 0.2.0
CRAN release: 2026-09-15
Added support for uncorrelated normal and log-normal random effects.
Added
latent_class_effectstochoice_formula(), which names the effects that differ between latent classes, and the columnlatent_classtochoice_effects().A named
betais matched to the effects by name instead of by position, andgenerate_choice_parameters()completes a namedbetathat fixes only some of the effects.Probit probabilities now come from
oeli::pmvnorm().Specialized
choiceprob_*()functions are now internal; usecompute_choice_probabilities()as the public interface.Improved input validations. Internal validation failures now use descriptive
climessages.Added partial rankings, individual choice sets, joint panel outcomes, log-normal random effects, and latent class estimation.
Probability calculations now use Rcpp.
Added the choice data sets
water_conservation_choice,wind_power_choice, andlichess_berserk_choice.long_to_wide()now accepts afactorcolumn of alternatives.Jinchoice_alternatives()defaults to the number of supplied choice alternatives.New function
train_test(), which splits choice data by deciders or by choice occasions into a train and a test subset.Removed unused package dependencies.
