Learn R Programming

polyreg (version 0.8.0)

predict.FSR: predict.FSR

Description

predict.FSR

Usage

# S3 method for 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

Run this code
# NOT RUN {
out <- FSR(mtcars[1:30,])
forecast <- predict(out, mtcars[31:nrow(mtcars),])
# }

Run the code above in your browser using DataLab