predict.FSR: predict.FSR

View source: R/S3methods.R

predict.FSRR Documentation

predict.FSR

Description

predict.FSR

Usage

## S3 method for class 'FSR'
predict(object, newdata, model_to_use = NULL,
  standardize = NULL, noisy = TRUE, ...)

Arguments

object

FSR output. Predictions will be made based on object$best_formula unless model_to_use is provided (as an integer).

newdata

New Xdata.

model_to_use

Integer optionally indicating a model to use if object$best_formula is not selected. Example: model_to_use = 3 will use object$models$formula[3].

standardize

Logical–standardize numeric variables? (If NULL, the default, bypasses and decides based on object$standardize.)

noisy

Display output?

...

ignore

Value

y_hat (predictions using chosen model estimates).

Examples

out <- FSR(mtcars[1:30,])
forecast <- predict(out, mtcars[31:nrow(mtcars),])

polyreg documentation built on March 31, 2022, 9:05 a.m.