RprobitB 2.0.1
plot()has the new optiontype = "mixture", which draws the estimated mixing distributions of the random effects.bayes_factor()now accepts models with a fixed number of up to six latent classes.Ordered choice models now include an intercept by default.
The occupancy table of
latent_class_diagnostics()lists every number of classes from one to the maximum, including numbers with probability zero.Every chain starts at a draw from the prior distributions of the coefficients and thresholds, with the deciders allocated to the classes at random, instead of at the prior means, so that the chains start dispersed.
Cap the progress updates to prevent that many fast updates freeze the RStudio console.
RprobitB 2.0.0
CRAN release: 2026-09-20
Replaced the former multi-step workflow with
fit(), which accepts an empirical data frame or simulates data whendata = NULL.Added correlated and uncorrelated normal, positive log-normal, and negative log-normal random effects through named
random_effectsspecifications.Added
latent_class_effectstofit(), which names the effects that differ between the latent classes.Added
interpret(), which reads the estimates as compensations between effects, such as the willingness to pay, and as average marginal effects or marginal effects at the average covariate values, each with posterior uncertainty.Added the
update()method for fitted models, which refits with a modified specification.Added decider-level WAIC and PSIS-LOO and replaced the harmonic-mean marginal-likelihood estimator with bridge-sampling Bayes factors.
Reworked
predict()andresiduals()around posterior uncertainty.Added posterior diagnostics and standard
bayesplotdisplays throughsummary()andplot().Improved numerical efficiency of the Gibbs sampler.
Rewrote the vignettes: getting started, model variants, preference heterogeneity, posterior prediction, and model evaluation.
RprobitB 1.2.0
CRAN release: 2025-08-25
Fix in
npar.RprobitB_fit(). Parameters for the covariance matrices of the mixing distributions have been miscounted.Fix in
sufficient_statistics(). There was a bug in calculating sufficient statistics in the ordered case.Added function
mode_approx()to approximate conditional posterior modes.Documentation improvements.
RprobitB 1.1.0
CRAN release: 2022-07-22
Updated functionality
Print method for
RprobitB_parameter.Splitting the data set into a train and test part can now be done by the function
train_test(). Consequently, the argumenttest_probwas removed inprepare_data()andsimulate_choices().The function
simulate_choices()does not have the argumentdistranymore. Instead, covariates can be supplied via thecovariatesargument. Consequently, the argumentstandardizewas removed as well.Simplified specifying the utility
scale, see the help page ofRprobitB_normalization().
Renamed functions
The function
compareis now calledmodel_selection().The function
prepareis now calledprepare_data().The function
simulateis now calledsimulate_choices()to not maskstats::simulate().The function
mcmcis now calledfit_model().The function
choice_probsis now calledchoice_probabilities().
