naive_forecast | R Documentation |
Naive forecasting
naive_forecast(x, drift = 0, na = NA)
x |
A vector, usually a numeric vector. |
drift |
The number of periods used to calculate the change over time (it's called a drift).
If drift is more than 1 the mean value of the changes over time is used; default |
na |
The value, default |
The following naive forecast approaches are implemented:
Random Walk: y(t+1) = y(t)
One drift: y(t+1) = y(t) + [y(t)-y(t-1)]
Many drifts: y(t+1) = y(t) + [(1/drifts) * \sum ([y(t)-y(t-1)])]
A series of naive predicted values based upon x
.
Other Machine Learning:
cross_validation_split()
,
decision_tree()
,
k_nearest_neighbors()
,
moving_average()
,
naive_bayes()
,
predict.decisiontree()
,
predict.kmeans()
,
predict.naivebayes()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.