bootstrap_t_sample: Internal Bootstrap Sampling Function for T-tests

View source: R/nonparboot.R

bootstrap_t_sampleR Documentation

Internal Bootstrap Sampling Function for T-tests

Description

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

Usage

bootstrap_t_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 (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.

Value

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


npboottprm documentation built on Sept. 13, 2024, 5:06 p.m.