Description Usage Arguments Value
For each rolling sample, fit_predict
uses the training data set to
fit a GLM. Then, it uses the testing data set to get the predictions.
1 2 3 4 5 6 7 8 9 10 | fit_predict(
forecast.lead,
eq.number,
sample.number,
glm.family,
Y.name,
all.equations.rhs,
DF.Fit.Predict,
...
)
|
forecast.lead |
A numeric value with the number of the forecast lead. |
eq.number |
A numeric value with the number of the equation being estimated. |
sample.number |
A numeric value with the number of the rolling sample being used in the estimation/prediction. |
glm.family |
A description of the error distribution to be used in the
model. Inherits from |
Y.name |
Name of the y variable (variable to be forecasted) created by
|
all.equations.rhs |
Vector with all possible combinations of right-hand side variables. |
DF.Fit.Predict |
a data frame with training data and test data for the estimation estage. |
... |
Other parameters passed on the glm. |
Returns a numerical value giving the prediction for the selected equation, rolling sample, and forecast lead.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.