predict_model: Predict method for model functions

predict_modelR Documentation

Predict method for model functions

Description

Predict method for model functions

Usage

predict_model(
  object,
  pfun,
  mclass,
  pred_data = NULL,
  pred_cmd = "",
  conf_lev = 0.95,
  se = FALSE,
  dec = 3,
  envir = parent.frame(),
  ...
)

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

envir

Environment to extract data from

...

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.model documentation built on Oct. 16, 2023, 9:06 a.m.