Hi,
I am trying to run a non-parametric regression to calculate downward mobility. Whenever I try to run the following command I get an error stating invalid syntax.
Code:
forval h=1/`r(max)' {
forvalues f=90(-10)50 {
foreach var of varlist child_wage-head_wage {
qui reg `var' if group==`h' & head_wage>`f'
outreg2 using "DonwardRankMobility.xls", replace
}
}
}
I am trying to run a non-parametric regression to calculate downward mobility. Whenever I try to run the following command I get an error stating invalid syntax.
Code:
forval h=1/`r(max)' {
forvalues f=90(-10)50 {
foreach var of varlist child_wage-head_wage {
qui reg `var' if group==`h' & head_wage>`f'
outreg2 using "DonwardRankMobility.xls", replace
}
}
}
Comment