Re: [R] Binomial GLM in Stata and R

2013-11-20 Thread Ben Bolker
Floor Biemans hotmail.com> writes: [snip] > The stata code I have is: > > glm c IndA fia, family(binomial s) link(cloglog) offset(offset) > > The R code is: > > glmt <- glm(data=dataset, c ~ IndA + fia, offset = offset, family = binomial(link = cloglog)) > > Which yields different results fr

[R] Binomial GLM in Stata and R

2013-11-20 Thread Floor Biemans
Hello, I'm not a Stata user so I'm trying to reproduce Stata results that are given to me in R. I would like to use a GLM with a complementary log-log function. The stata code I have is: glm c IndA fia, family(binomial s) link(cloglog) offset(offset) The R code is: glmt <- glm(data=dat