bootr: Run a bootstrap

Description Usage Arguments Examples

Description

This function is a wrapper for "boot" that runs a model and produces relevant outputs.

Usage

1
2
3
bootr(numruns = 1000, model = lm, formula, weights = NULL,
  formula_match = NULL, cem_cutpoints = NULL, data, predictions = NULL,
  omit = NULL, unscale = NULL, ...)

Arguments

numruns

The number of iterations.

model

The statistical model (defaults to "lm").

formula

The formula to use for the model.

weights

Optional list of weights to use (if a matching formula is also present that will take precedence).

formula_match

An optional matching formula (defaults to "NULL"). The first variable in the formual is used as the treatment.

cem_cutpoints

An optional list of cutpoints for variables in the matching formula.

data

The dataframe that contains all variables in 'formula' and 'formula_match'.

predictions

A list with two dataframes (defaults to "NULL"): "predictions" contains a set of values to produce predictions for; "contrasts" contains a list of vectors or lists that for which contrasts should be produced.

omit

A string that contains the partial name of all variables to exclude from being returned (they will still be in the model).

unscale

An optional function to unscale predictions.

Examples

1

jacobaro/bootr documentation built on May 18, 2019, 8:01 a.m.