Generate predictions for the price of a stock over a specified time period. Choose between daily or monthly predictions.
Arguments
- stock
The stock to generate predictions for (e.g. "GOOGL").
- start_date
The first date of the predictions.
- end_date
The final date of the predictions.
- freq
the frequency of the predictions.
- hostess
A loader to show the progress of the predictions. A waiter::Hostess object.
Value
A tibble::tibble()
of stock predictions.
Details
The prediction process involves using a Prophet model to generate predictions, then using a LightGBM model to predict the residuals and adding the two together.
See also
plot_predictions()
to plot your generated predictions.prophet_models and
get_lightgbm_model()
for the underlying models.