[R] Q: Odds Ratio
kjetil@entelnet.bo
kjetil at entelnet.bo
Wed Mar 17 21:58:58 CET 2004
On 17 Mar 2004 at 11:50, Cristian Pattaro wrote:
> Dear all,
>
> is there a automatic method to obtain Odds Ratio estimates and their
> confidence intervals from a GLM Logistic model?
>
The parameters in the linear predictor in logistic regression
are log odds ratios (assuming the default contrast, contr.treatment).
So just exponentiate it!, and do the same with the confidence limits.
Maybe the best way to obtain confidence limits are
library(MASS)
mod <- glm(...)
confint(mod)
which uses likelihood profiling
Kjetil Halvorsen
> Thanks
> Cristian
>
> =============================================
> Cristian Pattaro
> =============================================
> Unit of Epidemiology & Medical Statistics
> Department of Medicines and Public Health
> University of Verona
> cristian at biometria.univr.it
> =============================================
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list