Repository navigation
measr 2.0.0
Breaking changes
-
The S3 parts of measr have been converted to
{S7}. -
Some of measr's functionality has been decoupled into other packages to allow
for quicker and easier updates.
The generation of Stan code and data lists have been moved to{dcmstan}.
Similarly, the example data sets have been moved to{dcmdata}to facilitate
the use of the data across other packages.
As part of the decoupling,measr_dcm()has been deprecated in favor of
dcmstan::dcm_specify()anddcm_estimate().# old my_model <- measr_dcm( data = ecpe_data, qmatrix = ecpe_qmatrix, resp_id = "resp_id", item_id = "item_id", type = "lcdm", attribute_structure = "unconstrained", method = "mcmc" ) # new library(dcmdata) my_spec <- dcm_specify( qmatrix = ecpe_qmatrix, identifier = "item_id", measurement_model = lcdm(), structural_model = unconstrained() ) my_model <- dcm_estimate( dcm_spec = my_spec, data = ecpe_data, identifier = "resp_id", method = "mcmc" )
-
predict()has been deprecated in favor ofscore(). The functionality is
the same, but
New features
-
aic()andbic()have been added for estimating relative model fit for
models estimated withmethod = "optim"(@JeffreyCHoover, #54). -
bayes_factor()has been added for comparing models using Bayes factors. This
is only available for models estimated withbackend = "rstan"
(@JeffreyCHoover, #67). -
Item and attribute discrimination measures can now be calculated with
cdi()
(@auburnhimenez34, #63). -
The specified Q-matrix can now be evaluated and compared to other empirical
Q-matrix specifications usingqmatrix_validation()(@JeffreyCHoover, #65). -
In
reliability(), users can now calculate the classification accuracy and
consistency for different probability classification threshold by specifying
athreshold(#45). -
New estimation methods,
variational()andpathfinder(), have been added to
support estimation via Stan's variational algorithm for approximate
posterior sampling and the pathfinder variational inference algorithm,
respectively. Pathfinder is only available when the model is estimated with
{cmdstanr}(#72). -
Local item dependence can now be estimated with
yens_q3()
(@JeffreyCHoover, #62).
Minor improvements and fixes
-
Documentation has been updated to ensure examples use
Air formatting to improve accessibility
(#68). -
measr_extract()has been updated to no longer require adding elements to
a model object before extracting (#73).