dot-build_pred_fn: Constructs a prediction function from a regression output

Description Usage Arguments Value

Description

Constructs a prediction function from a regression output

Usage

1
.build_pred_fn(reg_res, pred_names)

Arguments

reg_res

The output object from a regression, e.g. 'lm' or 'glm'

pred_names

The names of the predictors

Value

A function that takes a scalar or data.frame row and returns a prediction.


gwb/RGOB documentation built on May 14, 2021, 7:39 a.m.