You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New functions make_scoring_matrix_rt() and make_scoring_matrix_stz() enabling convienient construction of scoring matrices using random thresholds and sum to zero approaches.
rstyles 0.5.0 (20.12.2021)
New features
New function generate_item_expected_scores() that allows to generate (by numerical integration) expected probabilities of responses (response categories) given an item object or test object and covariance matrix of latent traits.
Dependency from the package mvtnorm was added to be able to compute weights for quadrature points.
New utility functions thresholds2intercepts() and intercepts2thresholds() allowing conversion between thresholds and intercepts parametrisations of simultaneous GPCM items.
Bug fixes
expand_responses() do not take into account missing values in the data while performing assertion that all values in the data are members of the set of values defined by rownames of the scoringMatrix.
generate_intercepts() correctly transforms parameters generated in a parametrisation involving item difficulty and thresholds relative to his difficulty into parametrisation of intercepts in case of simultaneous items (i.e. it cumulatively sums up thresholds and subtracts difficulty instead of adding difficulty to thresholds).
Documentation was corrected to explain, that in case of simultaneous mode arguments define how values of thresholds should be generated but that function returns accordingly computed intercepts.
Other changes
make_item() allows to get non-zero first element of the intercepts argument if length of intercepts equals to the number of rows of the scoringMatrix (previously it returned an error), but still warns that this is atypical specification.
Internals
Test where updated to work correctly after the changes in generate_intercepts().