Hi, I used the -irt- function in Stata 14 to fit a material deprivation index using some typically accepted indicators.
irt 1pl matdep1-matdep8
estimates store m1
irt 2pl matdep1-matdep8
estimates store m2
lrtest m1 m2
1. The 2 parameter model comes out significantly different to the first model. i can only presume that it fit better, not worse. Going through the new IRT instructions in Stata, I couldn't figure out how to test how well the model fit the data. Any advice there?
2. I also couldn't figure out how to generate an actual 'predict' style indicator score for the model's latent trait either, so just used -gsem- for the model (see below). I'm not sure it's the same kind of 2-parameter model as when using the -irt- function, or how to test that model fit against the data either. Can anyone help?
gsem (Matdep -> a_matdep1-a_matdep8), logit var(Matdep@1)
predict matdep*, latent
Thanks,
ZN
irt 1pl matdep1-matdep8
estimates store m1
irt 2pl matdep1-matdep8
estimates store m2
lrtest m1 m2
1. The 2 parameter model comes out significantly different to the first model. i can only presume that it fit better, not worse. Going through the new IRT instructions in Stata, I couldn't figure out how to test how well the model fit the data. Any advice there?
2. I also couldn't figure out how to generate an actual 'predict' style indicator score for the model's latent trait either, so just used -gsem- for the model (see below). I'm not sure it's the same kind of 2-parameter model as when using the -irt- function, or how to test that model fit against the data either. Can anyone help?
gsem (Matdep -> a_matdep1-a_matdep8), logit var(Matdep@1)
predict matdep*, latent
Thanks,
ZN
Comment