bootstrap_t_sample | R Documentation |
This is an internal function used by nonparboot() to perform bootstrap resampling for independent t-tests.
bootstrap_t_sample(x_val, y_val, grp_val, grp_sizes, pre_calc)
x_val |
A numeric vector of values from the primary variable. |
y_val |
A numeric vector of values from the second variable (only used for paired t-tests). |
grp_val |
A factor vector of group labels (only used for independent t-tests and F-test). |
grp_sizes |
A table of group sizes (only used for independent t-tests and F-test). |
pre_calc |
A list containing pre-calculated statistics from the original data. |
A numeric vector of length 2 containing the bootstrapped test statistic and mean difference.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.