I'm looking to create a graph that plots the odds ratios for a model I'm working on but I'm having a difficult time figuring out how to best do it.
We are looking at the odds ratios of falls by location and sex, and want a visual to show the difference over four time points.
If I run:
Code:
logistic FALL location##c.time##sex
if I run:
Code:
logistic FALL location##c.time##sex if time==1 logistic FALL location##c.time##sex if time==2 logistic FALL location##c.time##sex if time==3 logistic FALL location##c.time##sex if time==4 coefplot, drop(_cons) xline(0) eform xtitle(Odds ratio)
The other issue is the coefplot is only plotting one of the time points and I want all four on the same graph (using the same axis).
Any help is greatly appreciated.
Thank you!
0 Response to Plotting odds ratios at different time points
Post a Comment