I ran into a problem where a data replicator could not replicate an item response variable using the predict command (they were using Stata 16 while I produced my results in Stata 14.2). I used irt grm var1 var2 var3 var4 using the following code:
quietly irt grm imm1 imm2_1 imm2_2 imm3
predict immigration1
In Stata 14.2, I got the following output and successfully created the predict values:
(option pr assumed)
(option conditional(ebmeans) assumed)
(using 7 quadrature points)
But in Stata 16, I received the following error output:
(option pr assumed)
(option conditional(ebmeans) assumed)
(using 7 quadrature points)
option pr not allowed;
no depvars were specified using family(bernoulli), family(ordinal), or family(multinomial)
r(198);
For some reason, Stata 16 indicates that the option pr is not allowed, but that should be available to the irt command since Stata 14. I am not entirely sure why there this is occurring. I am able to reproduce the results with Stata 14 on different systems, but all users for Stata 16 observe the same error (I had colleagues check this for me). Any help for this issue would be appreciated.
0 Response to Replication code for Stata 14 and Stata16 producing different results
Post a Comment