[R] Odds ratios from lrm plot

Frank Harrell f.harrell at vanderbilt.edu
Sat Nov 12 03:51:47 CET 2011


The Design package is obsolete.  Use its replacement rms - see
http://biostat.mc.vanderbilt.edu/Rrms.  Use something like the following to
reproduce what you already have:

To plot odds ratios against a specific value of x2 and at a specific x1,
type ?contrast.rms to see examples.
Frank

RD235 wrote:
> 
> The code
> 
> library(Design)
> f <- lrm(y~x1+x2+x1*x2, data=data)
> plot(f)
> 
> produces a plot of log odds vs x2 with 0.95 confidence intervals. How do I
> get a plot of odds ratios vs x2 instead?
> 
> Thanks
> 


-----
Frank Harrell
Department of Biostatistics, Vanderbilt University
--
View this message in context: http://r.789695.n4.nabble.com/Odds-ratios-from-lrm-plot-tp4033340p4033414.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list