Hi all, I'm fairly new to stata and trying to run a simple regression that includes 9 dummy variables on the right for type of industry. One of them shows a coef of 0 and std err as (omitted), and nothing for the t and confidence intervals values. The other 8 are fine and give coefs that make sense. I do not get any error message or additional output once I run the regression, and all other values seem good to me.
The dummy variable is in the last four lines of my do file below, seeing as it is short I've included it in its entirety.
Could you please help me understand why stata is doing this and how I may go about resolving this issue?
keep if AGE>16
drop if ATTEND==1 //dropping people still attending course
keep if FTPT==1 //keeping only full-time workers
drop if HIQUL15D==7 //don't know qualification
drop if HIQUL15D==-8 //no answer
drop if HIQUL15D==-9 //does not apply
gen HQUAL=0 //reverse scale of HIQUL15D
replace HQUAL=6 if HIQUL15D==1
replace HQUAL=5 if HIQUL15D==2
replace HQUAL=4 if HIQUL15D==3
replace HQUAL=3 if HIQUL15D==4
replace HQUAL=2 if HIQUL15D==5
replace HQUAL=1 if HIQUL15D==6
gen LOGHOURPAY=log(HOURPAY)
drop if LOGHOURPAY==.
drop if ETH11EW==-8 //no answer
drop if ETH11EW==-9 //does not apply
gen ETHMIN=0 //white or else variable
replace ETHMIN=1 if ETH11EW!=1 //Else
replace ETHMIN=2 if ETH11EW==1 //White
drop if INDE07M==-8 //no answer
//Dummy variables for Industry
tabulate INDE07M, g(INDTYPE)
reg LOGHOURPAY HQUAL AGE SEX ETHMIN INDTYPE1 INDTYPE2 INDTYPE3 INDTYPE4 INDTYPE5 INDTYPE6 INDTYPE7 INDTYPE8 INDTYPE9
The dummy variable is in the last four lines of my do file below, seeing as it is short I've included it in its entirety.
Could you please help me understand why stata is doing this and how I may go about resolving this issue?
keep if AGE>16
drop if ATTEND==1 //dropping people still attending course
keep if FTPT==1 //keeping only full-time workers
drop if HIQUL15D==7 //don't know qualification
drop if HIQUL15D==-8 //no answer
drop if HIQUL15D==-9 //does not apply
gen HQUAL=0 //reverse scale of HIQUL15D
replace HQUAL=6 if HIQUL15D==1
replace HQUAL=5 if HIQUL15D==2
replace HQUAL=4 if HIQUL15D==3
replace HQUAL=3 if HIQUL15D==4
replace HQUAL=2 if HIQUL15D==5
replace HQUAL=1 if HIQUL15D==6
gen LOGHOURPAY=log(HOURPAY)
drop if LOGHOURPAY==.
drop if ETH11EW==-8 //no answer
drop if ETH11EW==-9 //does not apply
gen ETHMIN=0 //white or else variable
replace ETHMIN=1 if ETH11EW!=1 //Else
replace ETHMIN=2 if ETH11EW==1 //White
drop if INDE07M==-8 //no answer
//Dummy variables for Industry
tabulate INDE07M, g(INDTYPE)
reg LOGHOURPAY HQUAL AGE SEX ETHMIN INDTYPE1 INDTYPE2 INDTYPE3 INDTYPE4 INDTYPE5 INDTYPE6 INDTYPE7 INDTYPE8 INDTYPE9
Comment