Hello,
I'm not sure if I am doing this correctly but I am basically trying to regress different age groups, as defined by "dumm_`i' to`j' ", with different levels of education, represented in the dummy variables for education. The reason I am having issues is because the regressions do not appear! Stata just states "end of do file"
local education dumm_primary dumm_secondary dumm_bachelors dumm_postbachelors
foreach x of local education {
forvalues i = 15(5)49 {
local j = `i'+ 4
regress FP2A alone1 dumm_`i' to`j' "`x'", robust
}
}
I'm not sure if I am doing this correctly but I am basically trying to regress different age groups, as defined by "dumm_`i' to`j' ", with different levels of education, represented in the dummy variables for education. The reason I am having issues is because the regressions do not appear! Stata just states "end of do file"
local education dumm_primary dumm_secondary dumm_bachelors dumm_postbachelors
foreach x of local education {
forvalues i = 15(5)49 {
local j = `i'+ 4
regress FP2A alone1 dumm_`i' to`j' "`x'", robust
}
}
Comment