multiresponse_bootstrap_lm: Multiresponse Bootstrap Linear Model

View source: R/bootstrap.R

multiresponse_bootstrap_lmR Documentation

Multiresponse Bootstrap Linear Model

Description

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.

Value

A list containing the original fitted model and bootstrap results.


bbuchsbaum/fmrireg documentation built on May 16, 2023, 10:56 a.m.