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
Best way to do quantile regression for instrumental variable model with fixed effectDear Statalist, As a robustness check for my main model, I attempt to run a set of quantile regress…
GSEM Interpretation HelpHi everyone, I'm new to structural equation modeling but my advisor suggested I try it based on my …
How to point out what is the reason of omitted variables?Today I faced the omitted variable problem but I do not know what is the reason My code is Code: a…
Difference in Differences with cross sectional data - continuous treatment (didregress)Hello Members, I have a pressing doubt in implementing the diff in diff in Stata 17. - didregress c…
Help with graphing results of the synthetic control methodI've been struggling to perform placebo test and finding p-values after running a synthetic control …
Subscribe to:
Post Comments (Atom)
0 Response to Replication code for Stata 14 and Stata16 producing different results
Post a Comment