Re: [R] help needed using t.test with factors

2010-02-04 Thread Thomas Adams
Peter, Thank you very much! That did the trick… Regards, Tom Peter Ehlers wrote: Tom, t.test(MAE ~ type, data=data, subset=type %in% c('hpc','rfc')) -Peter Ehlers Thomas Adams wrote: Dennis, Thank you for the suggestion, but I get this error: > t.test(MAE ~ type,data=data) Error in t.te

Re: [R] help needed using t.test with factors

2010-02-04 Thread Thomas Adams
Peter, Thanks for pointing that out; the 'sleep' data looks like this: > sleep extra group 10.7 1 2 -1.6 1 3 -0.2 1 4 -1.2 1 5 -0.1 1 63.4 1 73.7 1 80.8 1 90.0 1 10 2.0 1 11 1.9 2 12 0.8 2 13 1.1 2 14 0.1

Re: [R] help needed using t.test with factors

2010-02-04 Thread Peter Ehlers
Tom, t.test(MAE ~ type, data=data, subset=type %in% c('hpc','rfc')) -Peter Ehlers Thomas Adams wrote: Dennis, Thank you for the suggestion, but I get this error: > t.test(MAE ~ type,data=data) Error in t.test.formula(MAE ~ type, data = data) : grouping factor must have exactly 2 levels

Re: [R] help needed using t.test with factors

2010-02-04 Thread Peter Ehlers
Somehow, in looking for those many examples, you missed the 'sleep' data example on the help page for t.test. (BTW, I wouldn't consider your sample data to be "minimal" or even close to minimal.) -Peter Ehlers Thomas Adams wrote: I am trying to use t.test on the following data: datetype

Re: [R] help needed using t.test with factors

2010-02-04 Thread Thomas Adams
Dennis, Thank you for the suggestion, but I get this error: > t.test(MAE ~ type,data=data) Error in t.test.formula(MAE ~ type, data = data) : grouping factor must have exactly 2 levels Tom Dennis Murphy wrote: Hi: On Thu, Feb 4, 2010 at 11:07 AM, Thomas Adams

[R] help needed using t.test with factors

2010-02-04 Thread Thomas Adams
I am trying to use t.test on the following data: datetypeINTERVALnCASESMTFSDFMTOSDO nFSTMFnOBSMOMBBIASCVBIASEVMEMAE RMSECRCF 2001-06-15avnGE1.0043850.2460.3001.502 0.55613671.3734385