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

Fetching item parameters for CML fits #41

Closed p-gw closed 1 year ago

p-gw commented 1 year ago

getitempars fails for models fit by CML().

I think this is due to the new structure of the parameter results implemented in #37.

p-gw commented 1 year ago

This bugfix might require some refactoring of the package, since we probably need a getitempars function for models with PT<:CombinedCMLResult.

CombinedCMLResult is part of src/fit.jl which also depends on the types defined in src/models/. Also the getitempars functions are defined in src/models/, which then needs to depend on CombinedCMLResult.

I guess we need to move out the type definitions somewhere, or separate the files in src/models.

Do you have any thoughts on restructuring @t-alfers?