JuliaPsychometrics / RaschModels.jl

Rasch modeling with all the bells and whistles. Implementations for Rasch model, partial credit model, rating scale model, and its linear extensions (upcoming). Classical and Bayesian estimation.
MIT License
3 stars 0 forks source link

Item response function always returns 0 #38

Closed p-gw closed 1 year ago

p-gw commented 1 year ago

For RaschModel{SamplingEstimate} the irf function always returns 0. Reason being that scoring_function defaults to identity here:

https://github.com/JuliaPsychometrics/RaschModels.jl/blob/245cd73cfcd8c17180a1f7d1a2943ad5a9cfdb25/src/models/RaschModel.jl#L54-L59

scoring_function is needed in add_irf! for expected_score, but here we can just make it default to x -> one(x) to fix the issue