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)A numeric vector of length 2 containing the bootstrapped test statistic and mean difference.
A numeric vector of values from the primary variable.
A numeric vector of values from the second variable.
A factor vector of group labels. This parameter is not used in this function but is included for consistency with other bootstrap sampling functions.
A table of group sizes. This parameter is not used in this function but is included for consistency with other bootstrap sampling functions.
A list containing pre-calculated statistics from the original data.