[R] Re: R-help Digest, Vol 13, Issue 17

David Duffy davidD at qimr.edu.au
Thu Mar 18 01:23:19 CET 2004


Cristian Pattaro asked:
> is there a automatic method to obtain Odds Ratio estimates and their
> confidence intervals from a GLM Logistic model?

something like:

 oddsr<-function(x) {
   require(MASS)
   round(exp(cbind(Odds.Ratio=coef(x), confint(x))),3)
 }
 oddsr(glm(y ~ x, family=binomial))

David Duffy.




More information about the R-help mailing list