Description Usage Arguments Value
Create a bsts_model
1 2 3 4 | bsts_create(df, date_variable, response, nseasons, niter = 100,
target_variable, group_variable, model.options = BstsOptions(),
rebag_vars = FALSE, rebag_mean_vars = FALSE,
inclusion_probability = 0.01)
|
df |
Dataframe |
date_variable |
Column name containing date |
response |
Group that is being forecast |
nseasons |
Seasonality of data - will be assumed if not provided |
niter |
Number of MCMC iterations to attempt |
target_variable |
Column name containing metric to be forecast |
group_variable |
Column name indicating group names - will build into regressors |
model.options |
Additional options for BSTS |
rebag_vars |
Create pseudo aggregate variable of other regressors |
rebag_mean_vars |
Create psuedo mean variable of other regressors |
inclusion_probability |
Minimum probability of inclusion in final model to show in returned predictors |
list object - bsts.model, data.frame of predictors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.