Re: [R] Reporting odds ratios or risk ratios from GLM

2011-03-16 Thread lafadnes
Thanks a lot! The following strategy as you suggested worked fine: OR <- exp(coef(GLM.2)[-1]) OR.ci <- exp(confint(GLM.2)[-1,]) OR OR.ci -- View this message in context: http://r.789695.n4.nabble.com/Reporting-odds-ratios-or-risk-ratios-from-GLM-tp3357209p3381020.html Sent from the R help mail

Re: [R] Reporting odds ratios or risk ratios from GLM

2011-03-15 Thread David Winsemius
On Mar 15, 2011, at 1:25 PM, lafadnes wrote: I am a new R user (am using it through the Rcmdr package) and have struggled to find out how to report OR and RR directly when running GLM models (not only reporting coefficients.) Example of the syntax that I have used: GLM.2 <- glm(diarsev ~

Re: [R] Reporting odds ratios or risk ratios from GLM

2011-03-15 Thread Aaron Mackey
OR <- exp(coef(GLM.2)[-1]) OR.ci <- exp(confint(GLM.2)[-1,]) -Aaron On Tue, Mar 15, 2011 at 1:25 PM, lafadnes wrote: > I am a new R user (am using it through the Rcmdr package) and have > struggled > to find out how to report OR and RR directly when running GLM models (not > only reporting coef

[R] Reporting odds ratios or risk ratios from GLM

2011-03-15 Thread lafadnes
I am a new R user (am using it through the Rcmdr package) and have struggled to find out how to report OR and RR directly when running GLM models (not only reporting coefficients.) Example of the syntax that I have used: GLM.2 <- glm(diarsev ~ treatmentarm +childage +breastfed, family=binomial(lo