Dear all,
I have generated an age range variable and its quadratic. But because of collinearity I have to take another step. But when regressing the equation I got no observations.
Any help I will appreciate. Many thanks. Below is my code.
gen byte agegroup= inrange(age, 25, 65) if !missing(age)
generate agegroupc = agegroup - r(mean)
generate agegroupcsq = agegroupc * agegroupc
regress agegroupc agegroupcsq female
I have generated an age range variable and its quadratic. But because of collinearity I have to take another step. But when regressing the equation I got no observations.
Any help I will appreciate. Many thanks. Below is my code.
gen byte agegroup= inrange(age, 25, 65) if !missing(age)
generate agegroupc = agegroup - r(mean)
generate agegroupcsq = agegroupc * agegroupc
regress agegroupc agegroupcsq female
Comment