[R] Post-hoc and planned comparisons for repeated measures

Kingsford Jones kingsfordjones at gmail.com
Sun Mar 29 20:18:46 CEST 2009


A couple more thoughts.  If you're using nlme::lme to fit the model
there is a 'contrasts' argument to lme which can be used to structure
the design matrix to produce tests of hypotheses of interest.  Also,
when you pass an lme object to anova you can use the 'L' argument to
specify linear combinations of the coefficients to be tested to be 0.

Kingsford


On Sun, Mar 29, 2009 at 11:57 AM, Kingsford Jones
<kingsfordjones at gmail.com> wrote:
> Hi Dwight,
>
> The answer likely depends on how you are fitting the model.  Have a
> look at the multcomp package and its vignettes to see if it can handle
> the model class you are interested in.
>
> hth,
>
> Kingsford Jones
>
>
>
> On Sun, Mar 29, 2009 at 11:11 AM, Krehbiel, Dwight
> <KREHBIEL at bethelks.edu> wrote:
>> Dear colleagues,
>>
>> Can anyone give some clues about how best to conduct post-hoc comparisons or planned comparisons for repeated-measures data in R? The UCLA web site gives wonderful examples for doing repeated-measures analyses of variance, but pairwise or other comparisons are still escaping me. Any clues would be much appreciated.
>>
>> Dwight Krehbiel, Ph.D.
>> Bethel College
>> North Newton, KS 67117
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>




More information about the R-help mailing list