chug: Chug a brew

Description Usage Arguments Value

View source: R/chug.R

Description

Chug a brew

Usage

1
chug(brew, .fun = NULL, .fun_args = NULL)

Arguments

brew

an ipa_brew object.

.fun

a function with at least three inputs: .trn .tst, and outcome. scrimp_mdl() will call your function as follows: .fun(.trn = train_imputed, .tst = test_imputed, outcome = outcome, ...), where ... is filled in by .fun_args. Generally, .fun should

  1. develop a prediction model using .trn

  2. create predicted values for observations in .tst

  3. evaluates the predictions using a summary measure (e.g., R-squared, area underneath the ROC curve, Brier score, etc.).

See example below where a function using random forests is applied.

.fun_args

a named list with additional arguments for .fun.

Value

an ipa_brew object with a column added to the wort containing the output from scrimp_mdl.


bcjaeger/ipa documentation built on May 7, 2020, 9:45 a.m.