Re: [R] I am struggling with contrasts

2020-03-10 Thread Berwin A Turlach
G'day all, On Tue, 10 Mar 2020 11:07:13 + "Viechtbauer, Wolfgang (SP)" wrote: > The linearHypothesis() function from the 'car' package does this. The function glht() in the 'multcomp' package should also be able to do this. The 'emmeans' package might also be useful. Will be off-line fo

Re: [R] I am struggling with contrasts

2020-03-10 Thread Viechtbauer, Wolfgang (SP)
rlach Cc: r-help@r-project.org (r-help@r-project.org) Subject: Re: [R] I am struggling with contrasts I have not clearly stated my question. I would like to obtain the point estimate and SE (or point estimate and 95% CI) of a linear combination of the the independent variables included in my

Re: [R] I am struggling with contrasts

2020-03-10 Thread Sorkin, John
rwin A Turlach Cc: Sorkin, John ; r-help@r-project.org (r-help@r-project.org) Subject: Re: [R] I am struggling with contrasts Yes. Contrasts, by definition, represents between-group differences, so cannot yield individual group levels. The closest you get is that the _intercept_ is the level of

Re: [R] I am struggling with contrasts

2020-03-10 Thread peter dalgaard
Yes. Contrasts, by definition, represents between-group differences, so cannot yield individual group levels. The closest you get is that the _intercept_ is the level of the base group in treatment contrasts, and relevel() will allow you to change the base level. -pd > On 10 Mar 2020, at 04:06

Re: [R] I am struggling with contrasts

2020-03-09 Thread Berwin A Turlach
G'day John, On Tue, 10 Mar 2020 01:42:46 + "Sorkin, John" 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

[R] I am struggling with contrasts

2020-03-09 Thread Sorkin, John
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=