Closed p-gw closed 1 year ago
For RaschModel{SamplingEstimate} the irf function always returns 0. Reason being that scoring_function defaults to identity here:
RaschModel{SamplingEstimate}
irf
scoring_function
identity
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
add_irf!
expected_score
x -> one(x)
For
RaschModel{SamplingEstimate}
theirf
function always returns 0. Reason being thatscoring_function
defaults toidentity
here:https://github.com/JuliaPsychometrics/RaschModels.jl/blob/245cd73cfcd8c17180a1f7d1a2943ad5a9cfdb25/src/models/RaschModel.jl#L54-L59
scoring_function
is needed inadd_irf!
forexpected_score
, but here we can just make it default tox -> one(x)
to fix the issue