[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:53:00 -0400


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:56:29 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 Wed 26 Mar 2008 - 19:30:29 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