One sample bootstrap t-test for a vector | R Documentation |
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
boot.student2, perm.ttest2, welch.tests, jack.mean
x <- rexp(30)
a <- t.test(x, mu = 0)
b <- boot.ttest1(x, 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.