One sample bootstrap t-test for a vector
One sample bootstrap t-test for a vector.
boot.ttest1(x, m, R = 999)
x |
A numerical vector with the data. |
m |
The assumed mean value. |
R |
The number of bootstrap resamples to draw. |
The usual one sample bootstrap t-test is implemented, only faster.
res |
A two valued vector with the test statistic and its p-value. |
Michail Tsagris
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr>
x <- rexp(30) a <- t.test(x, mu = 0) b <- boot.ttest1(x, 0)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.