You need weights=Holders to make the 2nd form equivalent to the first (with a
bunch of somewhat annoying and largely irrelevant warnings). This is because
300 claims from 1000 holders is more informative than 3 out of 10 even though
the rate is the same.
-pd
> On 27 Feb 2020, at 19:15 , John
It is simple to use the provided function glm as fit1 below. However,
without the offset argument, I tried fit2 below. The reason I used fit2 is
that (for X as predictors, b the coefficients)
fit2: log(Claims/Holders) = Xb
means
fit1: log(Claims)=Xb + log(Holders)
Obviously the results from fit2
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
-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
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>
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-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
7 matches
Mail list logo