View source: R/simulations_f.R
Simulate any trend with seasonal trends at the week and month level, and with lag effects.
1 2 3 4 5 6 | simulate_sales_lag(
time_period,
baseline_week = c(0, 0, 5, -5, -10, -9, 8, 5, 0, -8, 0, -10),
baseline_month = c(60, 55, 50, 49, 45, 15, 0),
lag_variables = list(`1` = 0.5, `7` = -0.2)
)
|
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.