Changelog
Source:NEWS.md
easyRaschBayes 0.4.0
Breaking changes
-
item_restscore_statistic(),infit_statistic()andq3_statistic()now condition on each person’s total score, both for the expected values and for the replicated data. They accept only Rasch-family models (bernoullioracat, logit link, nodisc).method = "theta"ininfit_statistic()andq3_statistic()gives the 0.3.0 results. Results change.-
item_restscore_statistic()adds Kreiner’s expected gamma (gamma_exp), a mid-ppppand a max-T adjustedp_adj.gamma_diffis now observed minus expected, andgamma_obs_q*is replaced bygamma_rep_q*. - Conditional infit matches
iarm::out_infit()for the same item parameters. -
q3_post()addsq3_p_adj, adjusted over item pairs, and its reference line is the mean replicated Q3.
-
-
infit_post()infit_pppandq3_post()q3_pppcompared each draw’s observed value with the mean of the replicated values, not with the same draw’s replicated value.infit_pppis now also P(observed > replicated) with mid-p ties, so values near 1 indicate underfit, as forq3_ppp. Results change. -
plot_targeting()andplot_targeting_hpcm()followeasyRasch2::RMtargeting(). The bottom panel shows response-category bands, with categories that are never most likely and disordered thresholds marked in red and labelled with their posterior probabilities.panel = "thresholds"gives a dot-and-whisker plot. New argumentspanel,xlim,category_labels,viridis_*,row_gapandoutput = "list", plusperson_estimateinplot_targeting(). The defaults forbinsand the x-axis change, andsort_items = "location"puts the easiest item at the top. ‘scales’ is added to Imports.
New features
- New datasets
phq9(600 NHANES respondents, nine items with four categories, as in easyRasch2) andphq9_nhanes(1000 NHANES respondents, including zero responses, for the hurdle partial credit model). -
plot_icc()gainsmethodandscore_breaksfor forming class intervals, as ineasyRasch2::RMitemICCPlot(), and a caption stating the grouping.n_intervalsis renamedclass_intervalsinplot_icc()andplot_icc_hpcm(), and the old name is deprecated. -
plot_icc()withdif_varseparates groups by shape and line type as well as colour.plot_ipf()adds line types, andplot_tile()andplot_stackedbars()usetheme_bw(). -
plot_icc(),plot_icc_hpcm()andplot_residual_pca()report how many persons with missing responses they leave out. -
item_restscore_post()andinfit_post()accept any item column name. -
item_parameters()n_effis nowposterior::ess_bulk(). ‘posterior’ is added to Imports.
Bug fixes
-
dif_statistic()for polytomous models loaded differences in group means onto the items as DIF. Impact is now estimated separately (newimpactelement), and all DIF types share one sign: positive means easier for the focal group. Results change for polytomous models. - Rating scale models gave every item the same thresholds. Results change for rating scale models.
0 + itemmodels no longer fail inplot_residual_pca()andplot_targeting(). -
person_parameters()andperson_parameters_hpcm()now compute the WLE of persons with missing responses from the items they answered, with a newn_itemscolumn. -
person_parameters()andplot_icc()counted sum scores from the lowest observed category instead of category 1. -
q3_statistic(),q3_statistic_hpcm(),plot_residual_pca()anditem_restscore_statistic()stop if a person and item combination occurs more than once. Previously only the last response was kept. -
plot_icc_hpcm()placed class intervals in the severity panel at their mean EAP, which made observed points look misfitting, and shifted responses down when there were no zeros. Plots change. -
plot_ipf()andplot_icc()use the model’s link for cumulative, sratio and cratio models, and stop for non-logitacatmodels and models that estimatedisc. -
plot_residual_pca()aligns eigenvector signs across draws by the dot product with the mean direction. -
plot_icc()partial gamma used the wrong column for numeric item labels. -
posterior_epred_hurdle_acat()failed when items had different numbers of categories. -
infit_statistic_hpcm()andq3_statistic_hpcm()failed with ordered-factor responses or a single draw, and with item labels that brms renames.
Documentation
-
infit_statistic()andinfit_post()state that the infit ppp is conservative, also with the conditional method, and suggestitem_restscore_statistic()as well. - Corrected
RMUreliability()return value,plot_residual_pca()styledefault and centring, andplot_icc()partial gamma sign. Added caveats toposterior_to_prior()andplot_icc_hpcm().infit_statistic_hpcm()is no longer described as conditional infit.
easyRaschBayes 0.3.0
CRAN release: 2026-06-18
- New custom brms family
hurdle_acatfor hurdle partial credit models (H-PCM). This is written by Kristoffer Magnusson - Several adapted (experimental) functions for H-PCM, all using the
*_hpcmsuffix. - Bug fix - changed post processing functions to use
median_hdci()instead ofmedian_hdi()to avoid issues with multimodal posteriors. - Bug fix - corrected the WLE person estimates in
person_parameters()andperson_parameters_hpcm(). The polytomous Warm bias correction had the wrong sign, biasing estimates outward; WLE now matchescatR/TAM. Extreme (minimum and maximum) scores now receive proper finite WLE estimates instead of being clamped to thetheta_rangebounds.
easyRaschBayes 0.2.0
CRAN release: 2026-03-28
- Updates:
-
infit_statistic()is now faster and defaults to not output outfit statistics, since these are of dubious value (see Müller 2020 and Johansson, 2025). -
item_restscore_statistic()is now faster and has output similar toinfit_post(). -
q3_statistic()is now faster and has output similar toinfit_post(). -
plot_residual_pca()is now faster.
-
- Three post-processing helper functions that output a list with result table(s) and a plot:
-
infit_post()for the output ofinfit_statistic() -
item_restscore_post()for the output ofitem_restscore_statistic() -
q3_post()for the output ofq3_statistic()
-
- Other new functions:
-
plot_icc()can both produce a basic conditional Item Characteristic Curves plot and optionally a DIF ICC plot, the latter also reporting a partial gamma DIF magnitude coefficient. This is inspired byiarm::ICCplot() -
item_parameters()to retrieve item threshold locations -
person_parameters()to retrieve person locations (latent scores) using EAP and WLE, and also a transformation table from ordinal sum score to EAP/WLE. -
posterior_to_prior()that extracts priors from abrmsfitmodel that may be useful in model fit assessment. An article will be added later, exploring this further. -
plot_tile(),plot_bars(), andplot_stackedbars()uses wide format item data to create plots to review response patterns.
-