Re: [R] generating a paired t-test with multiple levels of a factor

From: James Root <jcroot_at_gmail.com>
Date: Wed, 26 Mar 2008 14:55:54 -0400

Apologies for the previous post - sent by mistake. Here is the full post below:

I have been trying to run this analysis and finally want to ask for help.

I am trying to run a paired t-test in which I have 19 subjects who have reaction times for 5 different conditions. The data frame has 114 rows total (6 rows for each subject representing six average reaction times by condition). Is there a way to run all paired t-tests where a paired t-test is run for every possible combination?

cou     778     498.6250
nyc     778     494.5750
scr     778     419.7500
sub     778     526.2500
vie     778     483.7000
wtc     778     488.3000
cou     783     993.2571
nyc     783    1209.0000
scr     783     680.2000
sub     783    1177.9032
vie     783    1363.5946
wtc     783    1377.2581

and so on totaling 114 rows total. Sorry for the confused post and thanks for any help in advance.

On Wed, Mar 26, 2008 at 2:53 PM, James Root <jcroot_at_gmail.com> wrote:

> I have been trying to run this analysis and finally want to ask for help.
>
> I am trying to run a paired t-test in which I have 19 subjects who have
> reaction times for 5 different conditions. The data frame has 114 rows
> total (6 rows for each subject representing six average reaction times by
> condition). Is there a way to run all paired t-tests where a paired t-test
> is run for every possible combination?
>
> 103cou 778 498.6250
> 104 nyc 778 494.5750
> 105 scr 778 419.7500
> 106 sub 778 526.2500
> 107 vie 778 483.7000
> 108 wtc 778 488.3000
> 109 cou 783 993.2571
> 110 nyc 783 1209.0000
> 111 scr 783 680.2000
> 112 sub 783 1177.9032
> 113 vie 783 1363.5946
> 114 wtc 783 1377.2581
>
>

        [[alternative HTML version deleted]]



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. Received on Wed 26 Mar 2008 - 18:58:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 28 Mar 2008 - 07:30:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive