Adds a time index and scales y. Creates auxiliary columns 't', 't_ix', 'y_scaled', and 'cap_scaled'. These columns are used during both fitting and predicting.
setup_dataframe(m, df, initialize_scales = FALSE)list with items 'df' and 'm'.
Prophet object.
Data frame with columns ds, y, and cap if logistic growth. Any specified additional regressors must also be present.
Boolean set scaling factors in m from df.