Dear All,
As part of my research, I have conducted the LR test to compare both the unrestricted and the restricted models to see the effect of particular group of variables. I did this analysis by using probit, double hurdle, Heckman, and OLS models. In addition, I need to conduct this analysis for quantile regression. Hence I used the following commands.
sqreg lnamount obc sc st area asset marginal small semimedium HHsize age primary middle secondary graduate north central east northeast south if access ==1, q(0.25 0.50 0.75 0.90)
estimates store fullmodel
sqreg lnamount area asset marginal small semimedium HHsize age primary middle secondary graduate north central east northeast south if access ==1, q(0.25 0.50 0.75 0.90)
estimates store nosocial
lrtest fullmodel nosocial , stats
Note: In the above command the restricted varaiables are obc sc and st and that model is called as nosocial group model.
However, these above commands showed the following errors
fullmodel does not contain scalar e(ll)
r(498);
And I have gone through https://www.statalist.org/forums/for...ile-regression also. Though I did not get much from that link as I am not a econometrically trained scholar, but one thing I understood is that lrtest can't be performed with qreg command. Now, I am stranded that how to compare both the unrestricted and the restricted models to see the effect of particular group of variables. I would be very much thankful to you all if my problems are solved.
Thanks and Regards
Karthick Veerapandian.
Related Posts with Can lrtest be performed with sqreg or if not what is the alternative method.
How to add the groups used in a regression to outreg2 export table?Dear all, I am using a panel dataset with 217 countries for the years 1960-2019 for LPM/OLS regress…
MI Impute ErrorHi Statalisters, I've encountered a problem with a MI impute code. The mIssing data table is below:…
Stata seems to override memory limits and take up the entire memoryI am using package synth. If run for long, synth progressively consumes all available RAM. It is not…
Generate a group if an ID starts with an AHi all, I am trying to generate a group=1 if an ID starts with a certain letter/number. Do you have…
Diff-in-Diff policy analysis: supress intercept to obtain policy effect?Dear Statalists, I am currently writing my ba thesis on the effectivness of Environmental Policy usi…
Subscribe to:
Post Comments (Atom)
0 Response to Can lrtest be performed with sqreg or if not what is the alternative method.
Post a Comment