predict.FSR | R Documentation |
predict.FSR
## S3 method for class 'FSR' predict(object, newdata, model_to_use = NULL, standardize = NULL, noisy = TRUE, ...)
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 |
y_hat (predictions using chosen model estimates).
out <- FSR(mtcars[1:30,]) forecast <- predict(out, mtcars[31:nrow(mtcars),])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.