Skip to content
Prev 126541 / 398500 Next

2 Sample Confidence Interval - Formatting Data?

On Tue, 2007-10-09 at 18:37 -0400, Wayne Aldo Gavioli wrote:
Try this, presuming that your data above are not paired:
Welch Two Sample t-test

data:  x and y 
t = 3.0621, df = 9.264, p-value = 0.01308
alternative hypothesis: true difference in means is not equal to 0 
95 percent confidence interval:
  2.039893 13.388678 
sample estimates:
mean of x mean of y 
 6.571429 -1.142857 


See ?t.test for more information.


confint(), as per the top of help page which you were reading:

"Computes confidence intervals for one or more parameters in a fitted
model."

Said differently, it computes confidence intervals for the coefficients
in a linear model, not for the difference in means in a two sample test.

HTH,

Marc Schwartz