[R] I am struggling with contrasts

Berwin A Turlach berw|n@tur|@ch @end|ng |rom gm@||@com
Tue Mar 10 04:06:34 CET 2020


G'day John,

On Tue, 10 Mar 2020 01:42:46 +0000
"Sorkin, John" <jsorkin using som.umaryland.edu> wrote:

> I am running a Poisson regression with a single outcome variable,
> HGE, and a single independent variable, a factor, Group which can be
> one of two values, Group1, or Group2. I am trying to define contrasts
> that will give me the values of my outcome variable (HGE) when
> group=Group1 and when group=Group2. 

Not sure what you mean, but I am suspecting you are after this output:

R> fit0 <- glm(HGE ~ Group - 1,family=poisson,data=dataForR,offset=logFU)
R> summary(fit0)

Cheers,

	Berwin



More information about the R-help mailing list