[R] clarification about glm

From: sigalit mangut-leiba <smangut_at_gmail.com>
Date: Sat, 23 Feb 2008 22:04:57 +0200


Hello,
I have a question about glm:
if i have a binary covariate (unit=1,0)
the reference group would be 0? (prediction for unit=1)

example:

dat1<-data.frame(y,unit,x1,x2)

log_u <- glm(y~.,family=binomial,data=dat1)

summary(log_u)

           Estimate Std. Error z value Pr(>|z|)

(Intercept) -0.54247    0.24658  -2.200   0.0278 *
unit1       -0.13052    0.22861  -0.571   0.5680
aps          0.03098    0.01433   2.162   0.0306 *
tiss0        0.02522    0.01101   2.291   0.0219 *

Thank you,

Sigalit.

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat 23 Feb 2008 - 20:09:44 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 23 Feb 2008 - 21:30:16 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive