This function takes an overall dataset, a model type option and returns unseen predictions for the past n days.
1 | ModelHistory(data, model, n, coln)
|
data |
The total dataset to be split on each day |
model |
An option for the type of model, (1) "TREE" does CART and (2) "GLM" does LogReg |
n |
The number of days back to calculate unseed predictions on |
coln |
If set to TRUE returns line of columns per day, if FALSE simply all predictions in one |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.