Description Usage Arguments Value
Adds a time index and scales y. Creates auxillary columns 't', 't_ix', 'y_scaled', and 'cap_scaled'. These columns are used during both fitting and predicting.
1 | setup_dataframe(m, df, initialize_scales = FALSE)
|
m |
Prophet object. |
df |
Data frame with columns ds, y, and cap if logistic growth. Any specified additional regressors must also be present. |
initialize_scales |
Boolean set scaling factors in m from df. |
list with items 'df' and 'm'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.