Hi,
The error message is explicit enough. You need 'y' for the paired test.
with(payoff, t.test(Open, Closed1, paired=TRUE))
HTH,
Pascal
On 25/03/13 07:42, Charlotte Rayner wrote:
This error keeps appearing when i perform a paired t-test in R
Error in t.test.default(payoff, paired = T) : 'y' is missing for paired test
This is the method i have used
read.table("MeanPayoff.txt",header=T) Open Closed1 47.50000 42.37502
49.25000 50.00003 50.00000 49.80004 33.50000 20.00005 34.75000 33.88006 35.50000
20.50007 33.35000 12.87508 50.00000 22.50009 47.15625 34.937510 44.38000 43.250011
50.00000 47.500012 42.12500 26.750013 27.35000 26.625014 31.75000 36.5000
attach(payoff)names(payoff)t.test(payoff,paired=T)
then the error keeps coming up
Please help
Charlotte
[[alternative HTML version deleted]]
______________________________________________
R-help@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.
______________________________________________
R-help@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.