bootstrap_f_sample: Internal Bootstrap Sampling Function for F-tests

View source: R/nonparboot.R

bootstrap_f_sampleR Documentation

Internal Bootstrap Sampling Function for F-tests

Description

This is an internal function used by nonparboot() to perform bootstrap resampling for F-tests. It is not intended to be called directly by the user.

Usage

bootstrap_f_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. This parameter is not used in this function but is included for consistency with other bootstrap sampling functions.

grp_val

A factor vector of group labels.

grp_sizes

A table of group sizes.

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 the effect size.


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