Skip to contents

Generate predictions for the price of a stock over a specified time period. Choose between daily or monthly predictions.

Usage

predict_price(
  stock,
  start_date = lubridate::today(),
  end_date = lubridate::today() + lubridate::days(60),
  freq = c("daily", "monthly"),
  hostess = dummy_hostess()
)

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