Description Usage Arguments Value
Constructs a prediction function from a regression output
1 | .build_pred_fn(reg_res, pred_names)
|
reg_res |
The output object from a regression, e.g. 'lm' or 'glm' |
pred_names |
The names of the predictors |
A function that takes a scalar or data.frame row and returns a prediction.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.