Re: [R] odds ratio: how to create reference

2008-09-23 Thread Frank E Harrell Jr
9/23/08, Bunny, lautloscrew.com <[EMAIL PROTECTED]> wrote: From: Bunny, lautloscrew.com <[EMAIL PROTECTED]> Subject: [R] odds ratio: how to create reference To: r-help@r-project.org Date: Tuesday, September 23, 2008, 4:06 AM HI there, i know this is a basic question, though i ne

Re: [R] odds ratio: how to create reference

2008-09-23 Thread Philip Twumasi-Ankrah
]> wrote: From: Bunny, lautloscrew.com <[EMAIL PROTECTED]> Subject: [R] odds ratio: how to create reference To: r-help@r-project.org Date: Tuesday, September 23, 2008, 4:06 AM HI there, i know this is a basic question, though i need some help because this is somewhat away from my cur

Re: [R] odds ratio: how to create reference

2008-09-23 Thread Eik Vettorazzi
You notice that your reference is for the SAS-procedure glm?! To play around and since you provided no data example I've created some data (by an idea from Frank Harrell jr. http://www.biostat.wustl.edu/archives/html/s-news/2002-04/msg00103.html) n <- 30 treat <- rep(c('a','b','c'), length.ou

Re: [R] odds ratio: how to create reference

2008-09-23 Thread Eik Vettorazzi
Hi, You can state a probability p as odds p/(1-p) and vice versa. To get an odds ratio you need actually two odds. Then you can get the odds ration of being/having "a" instead of "b" by odds(a)/odds(b), where "b" is the reference level. If you fit a logistic regression model (which means that y

[R] odds ratio: how to create reference

2008-09-23 Thread Bunny, lautloscrew.com
HI there, i know this is a basic question, though i need some help because this is somewhat away from my current issue, but nevertheless interesting to me... Lets assume i have some estimated probabilities, say estimated by a logit model. i know i can also state them as an odds ratio. N