What is the code in Stata for this question? Run the linear regression given by wages = β0 +β1education+β2workexp+β3unionmember +β4south+ β5−9occupation + β10female + u where wages=hourly wage in US dollars; education=years of schooling; workexp=years of work experience; unionmember=a dummy variable equal to ”1” if a person is a union member, and ”0” otherwise; south=a dummy variable equal to ”1” if a person lives in the south, and ”0” otherwise; occupation=a categorical variable equal to ”1” if a person’s occupation is ”management”; ”2” if it is ”sales”; ”3” if it is ”clerical”, ”4” if it is ”service”, ”5” if it is ”professional” and ”6” if it is ”other”. Please make sure to use ”other” as the base category; female =a dummy variable equal to ”1” if a person is female, and ”0” if a person is male.
What is the code in Stata for this question?
Run the linear regression given by wages = β0 +β1education+β2workexp+β3unionmember +β4south+ β5−9occupation + β10female + u
where wages=hourly wage in US dollars; education=years of schooling; workexp=years of work experience; unionmember=a dummy variable equal to ”1” if a person is a union member, and ”0” otherwise; south=a dummy variable equal to ”1” if a person lives in the south, and ”0” otherwise;
occupation=a categorical variable equal to ”1” if a person’s occupation is ”management”; ”2” if it is ”sales”; ”3” if it is ”clerical”, ”4” if it is ”service”, ”5” if it is ”professional” and ”6” if it is ”other”.
Please make sure to use ”other” as the base category; female =a dummy variable equal to ”1” if a person is female, and ”0” if a person is male.

Step by step
Solved in 3 steps









