[R] logististic regression (GLM). How to get 95 pct. confidence limits?

Christian Schulz ozric at web.de
Sat Feb 28 09:32:34 CET 2004


Hi,

in library(MASS) the function  profile.glm  should help you.

christian



Am Samstag, 28. Februar 2004 08:22 schrieb Niels Steen Krogh:
> Dear R-list.
> I'm doing af logistic analyses using gml.
> The model explaines variations in  Adverse events infections (0 og 1) using
> age as explanatory variable.
>
> model2d<-glm(formula=AEorSAEInfecBac~Age,family=binomial("logit"),data=emri
>sk)
>
> I want to get predictions with 95% confidence limits for age 30 and age 60.
> I've been reading the "google" and "search r-project" for suggestions but
> could only find solutions for lm:
> predict(model,data.frame(Age=30),level=.95 ..............)
> ?predict.glm or ?glm did'nt give me hints either.
>
>
> Using R1.8.1. Windows
>
>
>
>
>
> Cand. Polit.
> Niels Steen Krogh
> Solsortvej 44
> 2000 F.
>
> Tlf: 3888 8613
>
> ZiteLab / EmpoweR youR data with R, Zope and SOAP
>
> ______________________________________________
> 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