bootstrap_ols: Bootstrap OLS

bootstrap_olsR Documentation

Bootstrap OLS

Description

Bootstrap model coefficients and standard errors

Usage

bootstrap_ols(Y = NULL, X = NULL, stratify = NULL)

Arguments

Y

vector of regression model's dependent variable (embedded context)

X

data.frame of model independent variables (covariates)

stratify

covariates to stratify when bootstrapping

Value

list with two elements, betas = list of beta_coefficients (D dimensional vectors); normed_betas = tibble with the norm of the non-intercept coefficients


conText documentation built on Feb. 16, 2023, 7:32 p.m.