Good day everyone. I am trying to generate 4 ols regression models. I have created globals for my control variables and for my outcome variables. Below is my code. I get an error message - unexpected end of the file. How do I resolve this?
global VAR = "white_nh black_nh other_nh hispanic age_u20 age2026 age2730 age3135 age4145 age4650 age5155 age5660 age6164 age65pl lessshs hsged hsbelow socol college under25k income25_50k income75_100k income100pl childless child_1 child_2 child_3 i.gendernew married under138fpl btwn138400 over400fpl"
global outcome = "eshi pvtng medicaid uninsured"
eststo clear
foreach y in $outcome {
foreach g in $VAR {
eststo: reg `y' i.notworking_cvd##i.expansion i.notworking_non##i.expansion $VAR
quietly estadd local NonExpMean = round(r(mean), 0.1) if workstatus==0
quietly estadd local ExpMean = round(r(mean), 0.1) if workstatus==0
}
global VAR = "white_nh black_nh other_nh hispanic age_u20 age2026 age2730 age3135 age4145 age4650 age5155 age5660 age6164 age65pl lessshs hsged hsbelow socol college under25k income25_50k income75_100k income100pl childless child_1 child_2 child_3 i.gendernew married under138fpl btwn138400 over400fpl"
global outcome = "eshi pvtng medicaid uninsured"
eststo clear
foreach y in $outcome {
foreach g in $VAR {
eststo: reg `y' i.notworking_cvd##i.expansion i.notworking_non##i.expansion $VAR
quietly estadd local NonExpMean = round(r(mean), 0.1) if workstatus==0
quietly estadd local ExpMean = round(r(mean), 0.1) if workstatus==0
}
Comment