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
missed ANOVA Matrix in OLS regressionArray Hi, it is my results for Ols regression and doesn't have ANOVA matrix but my tutor results sho…
Using -margins- for different subsamplesHi everyone, margins, atmeans saves the means of covariates of a model in a matrix r(at), see here:…
Quantile regressionHello, I'm doing a thesis on the basis of RAND HIE data. I would like to run a quantile regression w…
Two errors - don't understand whyCan anyone advise? Code: . use "Z:\Data\jt\survival.dta" . capture erase "Z:\Data\jt\file.dta" . …
ommited control variableHello, I have a sample of 158 firms. I control for industry, and I have 26 industry dummies. One of…
Subscribe to:
Post Comments (Atom)
0 Response to Replication code for Stata 14 and Stata16 producing different results
Post a Comment