Hi all,
I'm currently trying a project using regression in stata to predict children's heights, using their parents. I'm trying to find predicted heights after 1,2,3,.... N generations and my first thought was to use a recursive expression that takes the previous predicted height and inputs that back into the regression formula until the difference between generations is below a threshold (say 0.1) and we can determine a convergence to a height. I was hoping to program this within a loop to modify starting heights also. Is there any guidance on anything similar I can access.
Thanks.
I'm currently trying a project using regression in stata to predict children's heights, using their parents. I'm trying to find predicted heights after 1,2,3,.... N generations and my first thought was to use a recursive expression that takes the previous predicted height and inputs that back into the regression formula until the difference between generations is below a threshold (say 0.1) and we can determine a convergence to a height. I was hoping to program this within a loop to modify starting heights also. Is there any guidance on anything similar I can access.
Thanks.
Comment