Hi there,
I have patient data and I am trying to see if the value of a biometric is predictive of disease severity. I have 3 group categories; control (1), low (2) and high (3), where 1 contains healthy controls, and 2 and 3 are diseased patients with differing levels of severity. Age is a confounding variable of biometric.
I have the following code:
I am quite new to stats and to stata, so I was hoping you might be able to give me some guidance. How can I exclude the control category? Does it make sense to not include the baseoutcome control category in the marginsplot, or would this mean I should also exclude the control group from the mlogit - if my goal is to model whether biometric levels can predict disease severity, would it be better to not calculate the margins relative to the control category at all?
Thanks so much for your help!
Very best,
Liz
I have patient data and I am trying to see if the value of a biometric is predictive of disease severity. I have 3 group categories; control (1), low (2) and high (3), where 1 contains healthy controls, and 2 and 3 are diseased patients with differing levels of severity. Age is a confounding variable of biometric.
I have the following code:
This generates a graph of the probability of being in each group across a continuum of the biometric value, which is what I want. However, I don't want the graph to include the control group (1), only the disease groups (2 & 3), i.e. I want to plot a graph of in-group probability at increasing levels of biometric for diseased patients only.
mlogit group biometric age, baseoutcome(1)
margins, at(biometric=(0(0.1)6))
marginsplot, recast(line) recastci(rarea)
I am quite new to stats and to stata, so I was hoping you might be able to give me some guidance. How can I exclude the control category? Does it make sense to not include the baseoutcome control category in the marginsplot, or would this mean I should also exclude the control group from the mlogit - if my goal is to model whether biometric levels can predict disease severity, would it be better to not calculate the margins relative to the control category at all?
Thanks so much for your help!
Very best,
Liz
Comment