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.
Related Posts with Replication code for Stata 14 and Stata16 producing different results
Perform a paired ttest on two substracts of the same variableI have a dataset that looks like this: var1 var2 var3 attribute 1 0.93 0.88 1 1 0.76 0.20 1 …
using newey west for heteroskedasticity and autocorrelation in vecmSo, I am trying to run a regression that requires me to log and take the first differences of it to …
How to write this with a loop (repetitive coding with numerical values that do not follow each other)Hello everyone, How can I write this faster? Code: svy: prop rech if form1==2 & gan1==14 …
Two way graph with multiple lines in a loopHello everyone, Iam trying to do a graph of multiple lines. What I want is a graph that shows in a s…
OLS Regression - explanation of coefficients with control variablesGood morning, I´m doing an OLS regression with the dependent variable having a health number ( Cod…
Subscribe to:
Post Comments (Atom)
0 Response to Replication code for Stata 14 and Stata16 producing different results
Post a Comment