I have this code I have to run a regression on and I want some advice on what I wrote. When I asked for help I felt like I was being called stupid in a sense.
reg lnw grade age male drace married birthyear34 birthyear33 /∗
∗/ birthyear32 birthyear31 birthyear30 birthyear29 birthyear28 /∗
∗/ birthyear27 birthyear26 if classwkr==2 & age>=30 & age<=39, r
Wage and Salary Workers Ages 40-49:
reg lnw grade age male drace married birthyear24 birthyear23 /∗
∗/ birthyear22 birthyear21 birthyear20 birthyear19 birthyear18 /∗
∗/ birthyear17 birthyear16 if classwkr==2 & age>=40 & age<=49, r
Keep in mind gen male=(sex==1) was stated earlier in my code
What I did for JUST female is "if classwkr==2 & age>=30 & age<=39 & male==0, r
and what I was going to do for JUST male was delete male from "reg lnw grade age drace married" and
move it to "if classwkr==2 & age>=30 & age<=39 & male==1, r"
(Of course I would do the same for the other group)
Please let me know if I am doing something wrong.
reg lnw grade age male drace married birthyear34 birthyear33 /∗
∗/ birthyear32 birthyear31 birthyear30 birthyear29 birthyear28 /∗
∗/ birthyear27 birthyear26 if classwkr==2 & age>=30 & age<=39, r
Wage and Salary Workers Ages 40-49:
reg lnw grade age male drace married birthyear24 birthyear23 /∗
∗/ birthyear22 birthyear21 birthyear20 birthyear19 birthyear18 /∗
∗/ birthyear17 birthyear16 if classwkr==2 & age>=40 & age<=49, r
Keep in mind gen male=(sex==1) was stated earlier in my code
What I did for JUST female is "if classwkr==2 & age>=30 & age<=39 & male==0, r
and what I was going to do for JUST male was delete male from "reg lnw grade age drace married" and
move it to "if classwkr==2 & age>=30 & age<=39 & male==1, r"
(Of course I would do the same for the other group)
Please let me know if I am doing something wrong.
Comment