Hi All,
I estimate a multinomial logit model with 10 independent variables. I suspect that there might be a multicollinearity issue. So, I am using perturb command. However, I always get an error message. If I use perturb command for logit or linear models, I do not get any errors. I have added a sample code that demonstrates what I am doing. I would appreciate any help.
clear all
set obs 90
gen y = 0 if _n<=30
replace y = 1 if _n>30 & _n<=60
replace y = 2 if _n>60
gen x1 = rnormal(0,1)
gen x2 = rnormal(5,2)
gen x3 = rnormal(10,3)
perturb: mlogit y x1 x2 x3, poptions(pvars(x1 x2) prange(1 1))
variable x1 not found
r(111);
end of do-file
Related Posts with Perturb with Mlogit
Problems with using _n to create id variableDear Statalist I have a dataset with 32 million observations, and around 30 variables, I want to pe…
Error code 3200 "conformability error" when using margins after cmxtmixlogit - stata 16Dear Statalist, I'm running a labeled choice experiment using the new cmxtmixlogit command in Stata…
GMM xtabond2: How to calculate Sargan and Arellano-Bond Tests by omitted variablesHello everyone, I am working with the command xtabond2 for Difference and System GMM using Panel Da…
Accuracy / ROC for lasso model?Hi! I am trying to do classification for a Radiomics database on a binary output variable and aroun…
Extract details of nested groups in 'mixed' commandHi, I need to access details of nested groups (highlighted by the red circle in the attached screens…
Subscribe to:
Post Comments (Atom)
0 Response to Perturb with Mlogit
Post a Comment