This function performs multiresponse bootstrap for a linear model.
Usage
multiresponse_bootstrap_lm(
form,
data_env,
conlist,
vnames,
fcon,
modmat,
block_size = 30,
boot_rows = FALSE,
nboot = 100,
event_indices
)
Arguments
- form
Formula for the linear model.
- data_env
Environment containing the data for the linear model.
- conlist
List of contrasts.
- vnames
Vector of variable names.
- fcon
Contrasts for fixed effects.
- modmat
Model matrix.
- block_size
Size of the blocks for the bootstrap (default: 30).
- boot_rows
Logical flag indicating whether to bootstrap rows (default: FALSE).
- nboot
Number of bootstrap iterations (default: 100).
- event_indices
Indices of events.