Dear All,
I'm trying to connect parents attributes like education and BMI to child on Stata 16. My commands are as follows:
However, when I get to
command, I get an r(612) error message stating the following
unexpected end of file.
Please advise if there is something that I'm missing. I read the meaning of the error message and tried the suggestions of closing the bracket, but this is not correct.
Thanks
Nthato
I'm trying to connect parents attributes like education and BMI to child on Stata 16. My commands are as follows:
Code:
by hhid (pid), sort: gen pid1=_n
gen empl_f=.
gen empl_m=.
gen educ_f=.
gen educ_m=.
gen wt_f=.
gen wt_m=.
sum pid1, meanonly
forval i = 1/`r(max)' {
Code:
forval i = 1/`r(max)' {
unexpected end of file.
Please advise if there is something that I'm missing. I read the meaning of the error message and tried the suggestions of closing the bracket, but this is not correct.
Thanks
Nthato

Comment