Hello,
I have this data that I created these dichotomized variables for two separate relationships of the log odds of CHD for chol (cholesterol continuity at 280) with smoke and age as confounder variables. I am not sure who to create this piecewise linear regression graph.
gen chol280= (chol>280)
gen chol2= chol280*(chol-280)
gen chol1= chol-chol2
logit chd chol1 chol2 smoke age
logit chd chol1 smoke age
Can anyone lead me in the right direction?
I have this data that I created these dichotomized variables for two separate relationships of the log odds of CHD for chol (cholesterol continuity at 280) with smoke and age as confounder variables. I am not sure who to create this piecewise linear regression graph.
gen chol280= (chol>280)
gen chol2= chol280*(chol-280)
gen chol1= chol-chol2
logit chd chol1 chol2 smoke age
logit chd chol1 smoke age
Can anyone lead me in the right direction?
Comment