Re: [R] Offset in glm poisson using R vs Exposure in Stata

2010-11-16 Thread Columbine Caroline Waring
before this point. Thank you again. Columbine > Date: Tue, 16 Nov 2010 17:47:23 -0500 > From: bbol...@gmail.com > To: caquile...@hotmail.com > CC: r-help@r-project.org > Subject: Re: [R] Offset in glm poisson using R vs Exposure in Stata > > -BEGIN PGP SIGNED MESS

Re: [R] Offset in glm poisson using R vs Exposure in Stata

2010-11-16 Thread Ben Bolker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/16/2010 03:08 PM, Columbine Caroline Waring wrote: > Officially I tried: **A** >> glm(count~md+ms+rf+sg+offset(log(Eff)), family=poisson,data=DepthHabGen) >> glm(count~md+ms+rf+sg, offset=(log(Eff)), family=poisson,data=DepthHabGen) > (which of

Re: [R] Offset in glm poisson using R vs Exposure in Stata

2010-11-16 Thread Columbine Caroline Waring
Or perhaps change the link? What would be recommended? Thank you. > To: r-h...@stat.math.ethz.ch > From: bbol...@gmail.com > Date: Tue, 16 Nov 2010 13:16:20 + > Subject: Re: [R] Offset in glm poisson using R vs Exposure in Stata > > Columbine Caroline Waring hotmail.com>

Re: [R] Offset in glm poisson using R vs Exposure in Stata

2010-11-16 Thread Ben Bolker
Columbine Caroline Waring hotmail.com> writes: > I am hoping to find someone who uses both R and program Stata for GLMs. [snip] > What I have is the code from Stata and am trying to reproduce the same analysis in R - my program of choice. > > . glm count md ms rf sg, family(poisson) > e

[R] Offset in glm poisson using R vs Exposure in Stata

2010-11-16 Thread Columbine Caroline Waring
R-helpers, I am hoping to find someone who uses both R and program Stata for GLMs. I am a beginner R user, finding my own way through; learning code etc. at the same time as learning the statistics I need to complete my project. What I have is the code from Stata and am trying to reproduce th