This internal function performs bootstrap resampling specific to the F-bar test
within the context of the nonparametric bootstrap test with pooled resampling.
It is used by bootFbar to generate bootstrap samples and compute intermediate
statistics.
bootstrap_fbar_sample(
data,
formula,
grp,
constraints,
grp_val,
grp_sizes,
pre_calc,
only_equality_constraints
)A list containing the test statistics for each constraint type (B, A, F) based on the bootstrap sample. Returns NA values if the iht computation fails.
A data frame containing the dataset for analysis.
An object of class "formula": a symbolic description of
the model to be fitted.
A string specifying the grouping variable in the data.
A matrix or data frame of constraints for the hypothesis test.
A vector containing the values of the group variable.
A table object containing the sizes of each group.
A list containing pre-calculated original test statistics.
A logical indicating whether only equality constraints are used.
The function creates bootstrap samples for each group in the data, then binds
these samples together. It applies the restriktor::iht function on these
samples to compute the test statistics. Error handling is implemented to manage
potential issues in iht computation.