Hello Statalist,
I have used OLS in estimating regression equations where the dependent variable is continuous (lastpay) and the explanatory variable is a categorical variable (mainsectoractivity with 14 categories). I have followed Stata's example (mealcat) in manually creating the dummy variable so that I could omit the category of choice (i.e. 14th category) in the regression analysis.
Please, I want to know if there is a more suitable technique order than OLS that I can use because my supervisor is of the opinion that OLS is not feasible in this situation.
The summary statistics data is posted below:
. summarize zone lastpay mainactivitysector
Variable Obs Mean Std. dev. Min Max
zone 2,559 3.745213 1.362958 1 6
lastpay 2,559 17175.74 35435.27 100 800000
mainactivi~r 2,559 5.4873 4.411378 1 14
The sample data is posted below:
Kindly advise on a more suitable estimation technique, if any.
Thank you.
I have used OLS in estimating regression equations where the dependent variable is continuous (lastpay) and the explanatory variable is a categorical variable (mainsectoractivity with 14 categories). I have followed Stata's example (mealcat) in manually creating the dummy variable so that I could omit the category of choice (i.e. 14th category) in the regression analysis.
Please, I want to know if there is a more suitable technique order than OLS that I can use because my supervisor is of the opinion that OLS is not feasible in this situation.
The summary statistics data is posted below:
. summarize zone lastpay mainactivitysector
Variable Obs Mean Std. dev. Min Max
zone 2,559 3.745213 1.362958 1 6
lastpay 2,559 17175.74 35435.27 100 800000
mainactivi~r 2,559 5.4873 4.411378 1 14
The sample data is posted below:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float loglastpay byte(m1 m2 m3 m4 m5 m6 m7 m8 m9 m10 m11 m12 m13 m14) 10.308952 0 0 0 0 0 0 0 0 0 0 0 0 1 0 10.44967 0 0 0 1 0 0 0 0 0 0 0 0 0 0 9.546813 0 0 0 0 0 0 0 0 0 0 1 0 0 0 7.824046 0 0 1 0 0 0 0 0 0 0 0 0 0 0 8.006368 0 0 1 0 0 0 0 0 0 0 0 0 0 0 10.645425 0 0 0 0 0 0 0 0 0 0 0 0 1 0 10.545341 0 0 0 0 0 0 0 0 0 0 1 0 0 0 9.798127 0 0 0 0 0 0 0 0 0 0 0 0 0 1 8.987197 0 0 1 0 0 0 0 0 0 0 0 0 0 0 10.92953 0 0 0 0 0 0 0 0 0 0 0 1 0 0 6.39693 0 0 0 0 0 0 0 1 0 0 0 0 0 0 8.987197 0 0 0 0 0 0 0 0 0 0 1 0 0 0 9.392662 0 0 0 0 0 0 0 0 0 0 1 0 0 0 10.165852 0 0 0 0 0 0 0 0 0 0 0 0 0 1 8.853665 0 0 0 0 0 0 0 0 0 1 0 0 0 0 9.798127 0 0 0 0 0 1 0 0 0 0 0 0 0 0 9.903487 1 0 0 0 0 0 0 0 0 0 0 0 0 0 10.596635 1 0 0 0 0 0 0 0 0 0 0 0 0 0 9.392662 0 0 0 0 0 0 0 0 0 0 0 0 1 0 5.703783 0 0 1 0 0 0 0 0 0 0 0 0 0 0 7.600903 1 0 0 0 0 0 0 0 0 0 0 0 0 0 9.392662 0 0 0 0 0 0 0 0 0 0 0 1 0 0 7.600903 1 0 0 0 0 0 0 0 0 0 0 0 0 0 9.615806 1 0 0 0 0 0 0 0 0 0 0 0 0 0 10.308952 0 0 0 0 0 0 0 0 0 0 0 0 1 0 7.824046 0 0 0 0 0 0 1 0 0 0 0 0 0 0 13.122363 0 0 0 0 0 0 1 0 0 0 0 0 0 0 6.214608 0 0 0 0 0 0 0 0 0 1 0 0 0 0 8.294049 0 0 1 0 0 0 0 0 0 0 0 0 0 0 9.740969 1 0 0 0 0 0 0 0 0 0 0 0 0 0 9.305651 1 0 0 0 0 0 0 0 0 0 0 0 0 0 8.699514 1 0 0 0 0 0 0 0 0 0 0 0 0 0 8.006368 0 0 1 0 0 0 0 0 0 0 0 0 0 0 7.600903 0 0 0 0 0 0 0 0 0 0 0 0 0 1 10.463103 0 0 0 0 0 0 0 0 0 0 0 0 1 0 6.39693 1 0 0 0 0 0 0 0 0 0 0 0 0 0 8.006368 1 0 0 0 0 0 0 0 0 0 0 0 0 0 9.615806 0 0 0 0 0 0 0 0 0 0 0 0 1 0 8.006368 0 1 0 0 0 0 0 0 0 0 0 0 0 0 10.545341 0 0 0 0 0 0 0 0 0 0 0 0 1 0 10.714417 0 0 0 0 0 0 0 1 0 0 0 0 0 0 9.2103405 0 0 0 0 0 0 0 0 0 0 1 0 0 0 11.225244 0 1 0 0 0 0 0 0 0 0 0 0 0 0 9.648595 0 0 0 0 0 0 0 0 0 0 1 0 0 0 10.37349 0 0 0 0 0 0 0 0 0 0 1 0 0 0 9.62905 0 0 0 0 0 0 0 0 0 0 1 0 0 0 6.39693 1 0 0 0 0 0 0 0 0 0 0 0 0 0 10.13579 0 0 0 0 0 1 0 0 0 0 0 0 0 0 10.65834 0 0 0 0 0 0 0 0 0 0 1 0 0 0 9.546813 0 0 0 0 0 0 0 0 0 0 0 0 1 0 9.998797 0 0 0 0 0 0 0 0 0 0 0 0 0 1 10.12663 0 0 0 0 0 0 0 0 0 0 1 0 0 0 8.612503 0 0 0 0 0 0 0 1 0 0 0 0 0 0 7.313221 0 0 1 0 0 0 0 0 0 0 0 0 0 0 10.308952 0 0 0 0 0 1 0 0 0 0 0 0 0 0 10.91509 0 0 0 0 0 0 0 0 0 1 0 0 0 0 5.298317 0 0 0 0 0 0 0 1 0 0 0 0 0 0 9.798127 1 0 0 0 0 0 0 0 0 0 0 0 0 0 10.37349 0 0 0 0 0 0 0 0 0 0 0 0 1 0 10.308952 1 0 0 0 0 0 0 0 0 0 0 0 0 0 8.517193 1 0 0 0 0 0 0 0 0 0 0 0 0 0 9.615806 0 0 0 0 0 0 0 0 0 0 0 1 0 0 6.109248 0 0 0 0 0 0 0 1 0 0 0 0 0 0 11.198215 0 0 0 0 0 0 0 0 0 0 0 0 1 0 9.126959 0 0 0 0 0 0 0 0 0 0 1 0 0 0 10.714417 0 0 0 0 0 0 0 0 0 0 1 0 0 0 8.987197 1 0 0 0 0 0 0 0 0 0 0 0 0 0 9.615806 0 0 0 0 0 0 0 0 0 0 0 0 0 1 8.699514 1 0 0 0 0 0 0 0 0 0 0 0 0 0 9.2103405 0 0 0 0 0 0 0 0 0 1 0 0 0 0 8.699514 0 0 0 0 0 0 0 0 0 0 0 0 0 1 12.36734 0 0 0 0 0 0 0 0 0 0 1 0 0 0 9.615806 0 0 0 0 0 0 0 0 0 0 0 1 0 0 9.903487 0 0 0 0 0 0 0 0 0 0 0 0 1 0 10.37349 0 0 0 0 0 0 0 0 0 0 1 0 0 0 9.903487 0 0 0 0 0 0 0 0 0 0 0 0 0 1 11.83138 1 0 0 0 0 0 0 0 0 0 0 0 0 0 9.903487 0 0 0 0 0 1 0 0 0 0 0 0 0 0 10.714417 0 0 0 0 0 0 0 0 0 0 0 1 0 0 9.230143 0 0 0 0 0 0 0 0 0 0 0 0 1 0 10.12663 0 0 0 0 0 0 0 0 0 0 0 0 1 0 10.491274 0 0 0 0 0 0 0 0 0 0 0 0 1 0 6.907755 0 0 0 0 0 0 0 0 0 0 0 0 1 0 10.505068 0 0 0 0 0 0 0 0 0 0 1 0 0 0 8.987197 0 0 0 0 0 0 0 0 0 0 0 1 0 0 8.294049 0 0 0 0 0 0 1 0 0 0 0 0 0 0 10.37349 0 0 0 0 0 0 0 0 0 0 1 0 0 0 9.392662 0 0 0 0 0 0 0 0 0 0 0 0 1 0 6.907755 1 0 0 0 0 0 0 0 0 0 0 0 0 0 11.082143 0 0 0 0 0 0 0 0 0 0 0 0 1 0 10.596635 0 0 0 1 0 0 0 0 0 0 0 0 0 0 9.838736 0 0 0 0 0 0 0 0 0 0 0 1 0 0 8.987197 0 0 0 0 0 0 0 0 0 0 1 0 0 0 9.546813 1 0 0 0 0 0 0 0 0 0 0 0 0 0 9.392662 0 0 0 0 0 0 0 0 0 0 0 0 1 0 9.2103405 0 0 0 0 0 0 0 0 0 0 1 0 0 0 7.17012 0 0 0 0 0 0 0 0 0 0 0 0 0 1 11.512925 1 0 0 0 0 0 0 0 0 0 0 0 0 0 9.615806 0 0 0 0 0 0 0 0 0 0 0 0 1 0 9.047821 0 0 0 0 0 0 0 0 0 0 0 0 0 1 end
Thank you.

Comment