bootstrap_pt_sample | R Documentation |
This is an internal function used by nonparboot() to perform bootstrap resampling for paired t-tests.
bootstrap_pt_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. |
grp_val |
A factor vector of group labels. This parameter is not used in this function but is included for consistency with other bootstrap sampling functions. |
grp_sizes |
A table of group sizes. This parameter is not used in this function but is included for consistency with other bootstrap sampling functions. |
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.