[R] Means do not tally

2010-05-24 Thread Ruijie
Hi all, here is my situation In my experiment, I expose 10 subjects to 24 different conditions of stimuli. Each condition is exposed to the same subject 3x. This would make each subject have 24x3=72 data points. All the subjects combined would have 72x10=720 data points with each condition

Re: [R] Means do not tally

2010-05-24 Thread Ben Bolker
Ruijie breakaway8 at gmail.com writes: In my experiment, I expose 10 subjects to 24 different conditions of stimuli. Each condition is exposed to the same subject 3x. This would make each subject have 24x3=72 data points. All the subjects combined would have 72x10=720 data points with each

Re: [R] Means do not tally

2010-05-24 Thread Ruijie
Noted. I have attached a list of some data in csv format. The first column is the SubID and the rest of the column are the mean of each condition for the particular subject. Average 1 is the average computed from each column in the list. Average 2 is computed from the raw data of all the data

Re: [R] Means do not tally

2010-05-24 Thread jim holtman
Are you sure that you have the same number of data points in each of the summary cells that you show in your csv file that was sent? You need to provide a reproducible example of all the data so we can see what you did. The best information I can provide at this point is that you have a bug in

Re: [R] Means do not tally

2010-05-24 Thread Ruijie
Thanks for your help jim. I have attached the raw data to see if anyone else can replicate my problem. Correction: i realise my attachment was too large, I have uploaded it to another site. The link is: http://dl.dropbox.com/u/1443460/List%20-%20Raw%20Data.csv Regards, Ruijie (RJ) He

Re: [R] Means do not tally

2010-05-24 Thread jim holtman
A quick check of you data shows that there are not the same number of sample in each of the different conditions, therefore trying to take the average of the averages will not work. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 32 31 29 30 24 23 31 32 32 31 24

Re: [R] Means do not tally

2010-05-24 Thread jim holtman
Notice that only column 19 in your original had the same for the average of the average and every entry had 32 data points. On Mon, May 24, 2010 at 1:47 PM, jim holtman jholt...@gmail.com wrote: A quick check of you data shows that there are not the same number of sample in each of the

Re: [R] Means do not tally

2010-05-24 Thread Ruijie
Thanks for your help jim. I have attached the raw data to see if anyone else can replicate my problem. Regards, Ruijie (RJ) He who has a why can endure any how. ~ Friedrich Nietzsche On 25 May 2010 00:17, jim holtman jholt...@gmail.com wrote: Are you sure that you have the same

Re: [R] Means do not tally

2010-05-24 Thread Ruijie
Yes thank you very much! I knew i had different data points for each subject per condition but didn't realise that it would affect the averages of the averages! Thank you for helping me solve this big headache of mine for the past 2 days =) Regards, Ruijie (RJ) He who has a why can