Hi,
Could someone kindly help me to develop a propensity score for an ordinal treatment variable?
(Apologies, I have had to rewrite my STATA code as I'm working on a secure database)
I am looking at whether degree of kidney impairment (ckdstage - my ordinal variable) affects odds of receipt of coronary angiography (binary) after a heart attack (MI). I want to compare multivariable and propensity score-adjusted models.
My multivariable model is:
logistic angiography i.ckdstage i.age_grp gender obese smoking ethnic.....
To develop a propensity score, I initially tried the following:
logistic ckdstage i.age_grp gender obese smoking ethnic (several more variables)
predict propensity
I think this is wrong, and did some reading, then tried using ordinal logistic regression as follows:
ologit ckdstage i.age_grp gender obese smoking ethnic (several more variables)
predict propensity
graph tw kdensity propensity if ckdstage==0 || kdensity propensity if ckdstage==1 || kdensity propensity if ckdstage==2 || kdensity propensity if ckdstage==3
The ologit regression appeared to work, but I can't get a graph and can't find a resource on the internet to show me where I might be going wrong. Could someone possibly suggest where I am going wrong?
Thanks so much
Jemima
Could someone kindly help me to develop a propensity score for an ordinal treatment variable?
(Apologies, I have had to rewrite my STATA code as I'm working on a secure database)
I am looking at whether degree of kidney impairment (ckdstage - my ordinal variable) affects odds of receipt of coronary angiography (binary) after a heart attack (MI). I want to compare multivariable and propensity score-adjusted models.
My multivariable model is:
logistic angiography i.ckdstage i.age_grp gender obese smoking ethnic.....
To develop a propensity score, I initially tried the following:
logistic ckdstage i.age_grp gender obese smoking ethnic (several more variables)
predict propensity
I think this is wrong, and did some reading, then tried using ordinal logistic regression as follows:
ologit ckdstage i.age_grp gender obese smoking ethnic (several more variables)
predict propensity
graph tw kdensity propensity if ckdstage==0 || kdensity propensity if ckdstage==1 || kdensity propensity if ckdstage==2 || kdensity propensity if ckdstage==3
The ologit regression appeared to work, but I can't get a graph and can't find a resource on the internet to show me where I might be going wrong. Could someone possibly suggest where I am going wrong?
Thanks so much
Jemima
Comment