predict_model: Predict method for model functions

Description Usage Arguments Details

View source: R/regress.R

Description

Predict method for model functions

Usage

1
2
predict_model(object, pfun, mclass, pred_data = NULL, pred_cmd = "",
  conf_lev = 0.95, se = FALSE, dec = 3, ...)

Arguments

object

Return value from regress

pfun

Function to use for prediction

mclass

Model class to attach

pred_data

Dataset to use for prediction

pred_cmd

Command used to generate data for prediction (e.g., 'carat = 1:10')

conf_lev

Confidence level used to estimate confidence intervals (.95 is the default)

se

Logical that indicates if prediction standard errors should be calculated (default = FALSE)

dec

Number of decimals to show

...

further arguments passed to or from other methods

Details

See https://radiant-rstats.github.io/docs/model/regress.html for an example in Radiant


radiant-rstats/radiant.model documentation built on Nov. 9, 2018, 5:37 p.m.