Description Usage Arguments Value Examples
View source: R/utility_functions.R
A function for computing a test statistic over multiple replicates of a set of data. Replicates are created by sampling from the original data with replacement.
1 | simpleBootstrap(x, T_x = mean, nRep = 1000, ...)
|
x |
a numeric vector, or a long-form matrix or data frame. |
T_x |
a function to compute a desired test statistic (default is the mean). |
nRep |
the number or replicates to sample. |
... |
additional parameters for the test statistic function. |
Returns a list containing the test statistics for each replicate, along with the test statistic for the original set of data.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.