I have a logistic model with an ordered categorical independent variable (4 levels) and two other covariates I want to control for. The ORs increase in magnitude with higher levels of the independent variable (though none is significant on its own). I want to run a test of trend to show the trend formally, but I'm having trouble doing this in Stata.
I tried the technique mentioned here: http://www.stata.com/statalist/archi.../msg00813.html but I'm getting an error at the third step (where you rerun the code without the indicator variable prefix, I'm told "outcome does not vary.") Can anyone shed light on this, or perhaps suggest the most straightforward way of doing this? Thank you in advance.
I tried the technique mentioned here: http://www.stata.com/statalist/archi.../msg00813.html but I'm getting an error at the third step (where you rerun the code without the indicator variable prefix, I'm told "outcome does not vary.") Can anyone shed light on this, or perhaps suggest the most straightforward way of doing this? Thank you in advance.
Comment