bootstrap_pt_sample {npboottprm}R Documentation

Internal Bootstrap Sampling Function for Paired T-tests

Description

This is an internal function used by nonparboot() to perform bootstrap resampling for paired t-tests.

Usage

bootstrap_pt_sample(x_val, y_val, grp_val, grp_sizes, pre_calc)

Arguments

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.

Value

A numeric vector of length 2 containing the bootstrapped test statistic and mean difference.


[Package npboottprm version 0.3.2 Index]