I would like, if possible, to calculate the residuals of lm
, with the data output by t.test
. How could this be done?
This is the data from t.test
:
Two Sample t-test
data: rta[ind1] and rta[ind2]
t = 0.68184, df = 15, p-value = 0.5057
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-6.286913 12.201198
sample estimates:
mean of x mean of y
25.85714 22.90000
And I have the following coefficients in lm
:
Residuals:
Min 1Q Median 3Q Max
-12.9000 -6.9000 -0.8571 5.1000 17.1429