alexanderrobitzsch / TAM

Test Analysis Modules
https://alexanderrobitzsch.github.io/TAM/
15 stars 9 forks source link

Error in plot.tam: theta0 not found #12

Closed sda030 closed 4 years ago

sda030 commented 4 years ago

After the update to TAM 3.4-26, there is an error in plot(mod_2PL, items = 1, type = "expected", wle=mod_2PL_abilities[["theta"]]) Error in plot.tam.mml(mod_1PL, items = 1, type = "expected", : object 'theta0' not found which "makes sense" when investigating the code, as line 423 assumes that theta0 exists, even though it only comes into existence when type="items". You have initiated a theta2 <- NULL, has there been any mixup between theta0 and theta2? (I haven't scrutinized your code in detail)

alexanderrobitzsch commented 4 years ago

Thank you for reporting. When working on the output of plot.tam() in the last version update, theta0 got lost somewhere. I will upload a bugfix on Github in the next hour.