Predict method for model functions
predict_model( object, pfun, mclass, pred_data = NULL, pred_cmd = "", conf_lev = 0.95, se = FALSE, dec = 3, envir = parent.frame(), ... )
object | Return value from |
---|---|
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 |
See https://radiant-rstats.github.io/docs/model/regress.html for an example in Radiant