Learn R Programming

rwa (version 0.1.0)

run_rwa_bootstrap: Run bootstrap analysis for RWA

Description

Run bootstrap analysis for RWA

Usage

run_rwa_bootstrap(
  data,
  outcome,
  predictors,
  n_bootstrap = 1000,
  conf_level = 0.95,
  focal = NULL,
  comprehensive = FALSE,
  include_rescaled = FALSE
)

Value

List with bootstrap results and confidence intervals

Arguments

data

Data frame

outcome

Outcome variable

predictors

Predictor variables

n_bootstrap

Number of bootstrap samples

conf_level

Confidence level

focal

Focal variable for comparisons (optional)

comprehensive

Whether to run comprehensive analysis

include_rescaled

Whether to bootstrap rescaled weights