Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
I am pleased to announce a new R package – forecastLM. The package, as the name implies, provides applications for forecasting regular time series data with a linear regression model (based on the lm
function from the stats package). It supports both ts
and tsibble
objects as inputs and enables simple extractions of features from the input object on the fly. Example for such features:
- Single or Multiple seasonal components (when applicable)
- Different types of trends (regular, log, exponential, polynomial)
- Adding past lags
- Piecewise regression
- Variables selection with stepwise regression
- Handle events and outliers
In addition, it provides interactive data visualization tools utilizing the plotly package. More details about the package available here:
- Github page: https://github.com/RamiKrispin/forecastLM
- Package site (work on progress): https://ramikrispin.github.io/forecastLM/
- Issues: https://github.com/RamiKrispin/forecastLM/issues
Installation
The package is still under development and currently available for installation through package Github repo:
# install.packages("remotes")
remotes::install_github("RamiKrispin/forecastLM")
Forecasting the residential demand for natural gas in New York
In the example below, we will use the trainLM function to train a linear regression model to forecast the residential demand for natural gas in New York state. As the goal is to demonstrate the key functions of the package, we will skip the descriptive analysis process (which generally you shouldn’t!) and focus on the training the forecasting process.
The demand for natural gas in New York state is one of the datasets available on the package and was sourced from the US Energy Information Administration API. Let’s load the series and review its main characteristics:
library(forecastLM)
data("ny_gas")
class(ny_gas)
## [1] "tbl_ts" "tbl_df" "tbl" "data.frame"
head(ny_gas)
## date y
## 1 1997-01-01 62019
## 2 1997-02-01 56003
## 3 1997-03-01 51213
## 4 1997-04-01 37597
## 5 1997-05-01 24082
## 6 1997-06-01 14469
The ny_gas
series is a regular time-series with monthly frequency in a tsibble
format. We will use the ts_plot
function from the TSstudio package to plot the series:
library(TSstudio)
ts_plot(ny_gas,
title = "The New York Natural Gas Residential Monthly Consumption",
Ytitle = "Million Cubic Feet",
Xtitle = "Source: US Energy Information Administration (Jan 2020)")
{"x":{"visdat":{"ab3f4c14bb73":["function () ","plotlyVisDat"]},"cur_data":"ab3f4c14bb73","attrs":{"ab3f4c14bb73":{"x":{},"y":{},"mode":"lines","line":{"width":2,"dash":null,"color":"#00526d"},"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"scatter"}},"layout":{"margin":{"b":40,"l":60,"t":25,"r":10},"xaxis":{"domain":[0,1],"automargin":true,"title":"Source: US Energy Information Administration (Jan 2020)","showgrid":false},"yaxis":{"domain":[0,1],"automargin":true,"title":"Million Cubic Feet","showgrid":false},"title":"The New York Natural Gas Residential Monthly Consumption","hovermode":"closest","showlegend":false},"source":"A","config":{"showSendToCloud":false},"data":[{"x":["1997-01-01","1997-02-01","1997-03-01","1997-04-01","1997-05-01","1997-06-01","1997-07-01","1997-08-01","1997-09-01","1997-10-01","1997-11-01","1997-12-01","1998-01-01","1998-02-01","1998-03-01","1998-04-01","1998-05-01","1998-06-01","1998-07-01","1998-08-01","1998-09-01","1998-10-01","1998-11-01","1998-12-01","1999-01-01","1999-02-01","1999-03-01","1999-04-01","1999-05-01","1999-06-01","1999-07-01","1999-08-01","1999-09-01","1999-10-01","1999-11-01","1999-12-01","2000-01-01","2000-02-01","2000-03-01","2000-04-01","2000-05-01","2000-06-01","2000-07-01","2000-08-01","2000-09-01","2000-10-01","2000-11-01","2000-12-01","2001-01-01","2001-02-01","2001-03-01","2001-04-01","2001-05-01","2001-06-01","2001-07-01","2001-08-01","2001-09-01","2001-10-01","2001-11-01","2001-12-01","2002-01-01","2002-02-01","2002-03-01","2002-04-01","2002-05-01","2002-06-01","2002-07-01","2002-08-01","2002-09-01","2002-10-01","2002-11-01","2002-12-01","2003-01-01","2003-02-01","2003-03-01","2003-04-01","2003-05-01","2003-06-01","2003-07-01","2003-08-01","2003-09-01","2003-10-01","2003-11-01","2003-12-01","2004-01-01","2004-02-01","2004-03-01","2004-04-01","2004-05-01","2004-06-01","2004-07-01","2004-08-01","2004-09-01","2004-10-01","2004-11-01","2004-12-01","2005-01-01","2005-02-01","2005-03-01","2005-04-01","2005-05-01","2005-06-01","2005-07-01","2005-08-01","2005-09-01","2005-10-01","2005-11-01","2005-12-01","2006-01-01","2006-02-01","2006-03-01","2006-04-01","2006-05-01","2006-06-01","2006-07-01","2006-08-01","2006-09-01","2006-10-01","2006-11-01","2006-12-01","2007-01-01","2007-02-01","2007-03-01","2007-04-01","2007-05-01","2007-06-01","2007-07-01","2007-08-01","2007-09-01","2007-10-01","2007-11-01","2007-12-01","2008-01-01","2008-02-01","2008-03-01","2008-04-01","2008-05-01","2008-06-01","2008-07-01","2008-08-01","2008-09-01","2008-10-01","2008-11-01","2008-12-01","2009-01-01","2009-02-01","2009-03-01","2009-04-01","2009-05-01","2009-06-01","2009-07-01","2009-08-01","2009-09-01","2009-10-01","2009-11-01","2009-12-01","2010-01-01","2010-02-01","2010-03-01","2010-04-01","2010-05-01","2010-06-01","2010-07-01","2010-08-01","2010-09-01","2010-10-01","2010-11-01","2010-12-01","2011-01-01","2011-02-01","2011-03-01","2011-04-01","2011-05-01","2011-06-01","2011-07-01","2011-08-01","2011-09-01","2011-10-01","2011-11-01","2011-12-01","2012-01-01","2012-02-01","2012-03-01","2012-04-01","2012-05-01","2012-06-01","2012-07-01","2012-08-01","2012-09-01","2012-10-01","2012-11-01","2012-12-01","2013-01-01","2013-02-01","2013-03-01","2013-04-01","2013-05-01","2013-06-01","2013-07-01","2013-08-01","2013-09-01","2013-10-01","2013-11-01","2013-12-01","2014-01-01","2014-02-01","2014-03-01","2014-04-01","2014-05-01","2014-06-01","2014-07-01","2014-08-01","2014-09-01","2014-10-01","2014-11-01","2014-12-01","2015-01-01","2015-02-01","2015-03-01","2015-04-01","2015-05-01","2015-06-01","2015-07-01","2015-08-01","2015-09-01","2015-10-01","2015-11-01","2015-12-01","2016-01-01","2016-02-01","2016-03-01","2016-04-01","2016-05-01","2016-06-01","2016-07-01","2016-08-01","2016-09-01","2016-10-01","2016-11-01","2016-12-01","2017-01-01","2017-02-01","2017-03-01","2017-04-01","2017-05-01","2017-06-01","2017-07-01","2017-08-01","2017-09-01","2017-10-01","2017-11-01","2017-12-01","2018-01-01","2018-02-01","2018-03-01","2018-04-01","2018-05-01","2018-06-01","2018-07-01","2018-08-01","2018-09-01","2018-10-01","2018-11-01","2018-12-01","2019-01-01","2019-02-01","2019-03-01","2019-04-01","2019-05-01","2019-06-01","2019-07-01","2019-08-01","2019-09-01","2019-10-01"],"y":[62019,56003,51213,37597,24082,14469,9719,10267,9878,17385,34936,48074,54949,51711,48382,32412,18810,12205,15342,8900,9546,15308,30010,41937,66611,57425,56954,35080,18880,14898,9890,8705,9962,17677,28487,46142,65819,66232,48138,37288,22525,14349,10847,10290,11087,18636,33940,61072,70467,60260,58547,37822,18799,13426,9813,9451,10188,16847,27651,42904,56754,51753,49309,34246,23432,13856,9740,9113,9332,17278,36764,58038,68215,73655,61494,42067,25774,14955,10049,8722,9456,17149,28397,49716,68793,70343,54933,40627,22876,13061,9913,9358,9587,15734,29113,48400,66148,68368,65007,41926,26332,14675,10303,9527,9247,14360,27186,53098,57895,59815,55702,33443,18971,12339,9517,8311,9353,18626,30329,42153,57091,71739,60533,41630,20828,11861,9467,10072,9222,12674,35026,60115,64081,63546,57550,34451,20321,12552,9373,8987,10092,18790,36074,58380,77147,65066,56360,37184,18648,12235,9666,9683,10280,20411,30620,57567,71232,64645,47703,26907,17563,10723,8767,8236,9952,17571,37152,70039,77802,65821,56516,34243,16760,11118,8975,9712,9447,19250,32448,51732,65236,57566,37978,26544,15280,10722,9079,8776,9971,17856,43467,55236,68908,65792,60057,33232,17596,11134,9459,9185,11223,16594,44459,68718,79952,74901,70836,38643,26165,12363,10686,9683,11117,16260,45075,62632,89006,91107,74731,36470,18251,13069,10330,10144,10202,20674,33880,44302,74579,66686,47537,36910,22097,12799,10775,9267,9380,18301,37991,66144,72971,60363,68073,30910,20619,13858,10732,10217,10956,15457,42671,75737,91695,64908,68622,48644,19184,12523,11062,9912,10718,23307,55996,69121,89963,73087,71056,34790,22559,12623,10340,9858,10405,17779],"mode":"lines","line":{"color":"#00526d","width":2,"dash":[]},"type":"scatter","marker":{"color":"rgba(31,119,180,1)","line":{"color":"rgba(31,119,180,1)"}},"error_y":{"color":"rgba(31,119,180,1)"},"error_x":{"color":"rgba(31,119,180,1)"},"xaxis":"x","yaxis":"y","frame":null}],"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.2,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}
As can see in the plot above, the series has strong seasonality. Although it is not pronounced well in the plot, for simplicity, we will assume that the series has linear growth.
Basic forecasting model
We will start with a simplistic model, fitting a linear trend and monthly seasonality with the trend
and seasonal
arguments, respectivly:
md1 <- trainLM(input = ny_gas,
y = "y",
trend = list(linear = TRUE),
seasonal = "month")
The trainLM
function return a list with 5 objects:
model
– thelm
model outputfitted
– the fitted valuesresiduals
– the residuals (i.e., actuals – fitted)parameters
– the model parametersseries
– the intput series with the features that build to fit the model
summary(md1)
## Length Class Mode
## model 13 lm list
## fitted 2 data.frame list
## residuals 2 tbl_ts list
## parameters 13 -none- list
## series 4 tbl_ts list
You can use the summary
function to view the model summary:
summary(md1$model)
##
## Call:
## stats::lm(formula = f, data = df1)
##
## Residuals:
## Min 1Q Median 3Q Max
## -21026.5 -2741.6 -412.8 2853.0 23582.2
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 66720.017 1340.437 49.7748 < 0.00000000000000022 ***
## monthFeb -5094.059 1704.010 -2.9895 0.003061 **
## monthMar -12667.248 1704.027 -7.4337 0.000000000001514748 ***
## monthApr -34179.741 1704.056 -20.0579 < 0.00000000000000022 ***
## monthMay -49716.104 1704.096 -29.1745 < 0.00000000000000022 ***
## monthJun -57592.685 1704.148 -33.7956 < 0.00000000000000022 ***
## monthJul -60314.048 1704.211 -35.3912 < 0.00000000000000022 ***
## monthAug -61100.585 1704.285 -35.8512 < 0.00000000000000022 ***
## monthSep -60509.165 1704.371 -35.5023 < 0.00000000000000022 ***
## monthOct -53000.442 1704.468 -31.0950 < 0.00000000000000022 ***
## monthNov -34896.516 1723.350 -20.2492 < 0.00000000000000022 ***
## monthDec -14487.892 1723.401 -8.4066 0.000000000000002769 ***
## linear_trend 27.059 4.416 6.1274 0.000000003276170518 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 5778.6 on 261 degrees of freedom
## Multiple R-squared: 0.94076, Adjusted R-squared: 0.93804
## F-statistic: 345.41 on 12 and 261 DF, p-value: < 0.000000000000000222
The plot_res
function provides a residuals plot. Besides the standard residual plot (e.g., residuals, residauls correlation and normality) it provides on the top of the plot a comparson view of the fitted values against the series itself. This is where the power of interactivity come into action as it enables to:
- Quickly identify outliers or observations that the model did not fit well, and linked to the event in the series itself
- As the residuals and the fitted vs. actuals plots are both linked, when zoom-in on one, it will automatically will zoom-in on the corresponding observations on the second plot (try it!)
plot_res(md1)
{"x":{"data":[{"x":["1997-01-01","1997-02-01","1997-03-01","1997-04-01","1997-05-01","1997-06-01","1997-07-01","1997-08-01","1997-09-01","1997-10-01","1997-11-01","1997-12-01","1998-01-01","1998-02-01","1998-03-01","1998-04-01","1998-05-01","1998-06-01","1998-07-01","1998-08-01","1998-09-01","1998-10-01","1998-11-01","1998-12-01","1999-01-01","1999-02-01","1999-03-01","1999-04-01","1999-05-01","1999-06-01","1999-07-01","1999-08-01","1999-09-01","1999-10-01","1999-11-01","1999-12-01","2000-01-01","2000-02-01","2000-03-01","2000-04-01","2000-05-01","2000-06-01","2000-07-01","2000-08-01","2000-09-01","2000-10-01","2000-11-01","2000-12-01","2001-01-01","2001-02-01","2001-03-01","2001-04-01","2001-05-01","2001-06-01","2001-07-01","2001-08-01","2001-09-01","2001-10-01","2001-11-01","2001-12-01","2002-01-01","2002-02-01","2002-03-01","2002-04-01","2002-05-01","2002-06-01","2002-07-01","2002-08-01","2002-09-01","2002-10-01","2002-11-01","2002-12-01","2003-01-01","2003-02-01","2003-03-01","2003-04-01","2003-05-01","2003-06-01","2003-07-01","2003-08-01","2003-09-01","2003-10-01","2003-11-01","2003-12-01","2004-01-01","2004-02-01","2004-03-01","2004-04-01","2004-05-01","2004-06-01","2004-07-01","2004-08-01","2004-09-01","2004-10-01","2004-11-01","2004-12-01","2005-01-01","2005-02-01","2005-03-01","2005-04-01","2005-05-01","2005-06-01","2005-07-01","2005-08-01","2005-09-01","2005-10-01","2005-11-01","2005-12-01","2006-01-01","2006-02-01","2006-03-01","2006-04-01","2006-05-01","2006-06-01","2006-07-01","2006-08-01","2006-09-01","2006-10-01","2006-11-01","2006-12-01","2007-01-01","2007-02-01","2007-03-01","2007-04-01","2007-05-01","2007-06-01","2007-07-01","2007-08-01","2007-09-01","2007-10-01","2007-11-01","2007-12-01","2008-01-01","2008-02-01","2008-03-01","2008-04-01","2008-05-01","2008-06-01","2008-07-01","2008-08-01","2008-09-01","2008-10-01","2008-11-01","2008-12-01","2009-01-01","2009-02-01","2009-03-01","2009-04-01","2009-05-01","2009-06-01","2009-07-01","2009-08-01","2009-09-01","2009-10-01","2009-11-01","2009-12-01","2010-01-01","2010-02-01","2010-03-01","2010-04-01","2010-05-01","2010-06-01","2010-07-01","2010-08-01","2010-09-01","2010-10-01","2010-11-01","2010-12-01","2011-01-01","2011-02-01","2011-03-01","2011-04-01","2011-05-01","2011-06-01","2011-07-01","2011-08-01","2011-09-01","2011-10-01","2011-11-01","2011-12-01","2012-01-01","2012-02-01","2012-03-01","2012-04-01","2012-05-01","2012-06-01","2012-07-01","2012-08-01","2012-09-01","2012-10-01","2012-11-01","2012-12-01","2013-01-01","2013-02-01","2013-03-01","2013-04-01","2013-05-01","2013-06-01","2013-07-01","2013-08-01","2013-09-01","2013-10-01","2013-11-01","2013-12-01","2014-01-01","2014-02-01","2014-03-01","2014-04-01","2014-05-01","2014-06-01","2014-07-01","2014-08-01","2014-09-01","2014-10-01","2014-11-01","2014-12-01","2015-01-01","2015-02-01","2015-03-01","2015-04-01","2015-05-01","2015-06-01","2015-07-01","2015-08-01","2015-09-01","2015-10-01","2015-11-01","2015-12-01","2016-01-01","2016-02-01","2016-03-01","2016-04-01","2016-05-01","2016-06-01","2016-07-01","2016-08-01","2016-09-01","2016-10-01","2016-11-01","2016-12-01","2017-01-01","2017-02-01","2017-03-01","2017-04-01","2017-05-01","2017-06-01","2017-07-01","2017-08-01","2017-09-01","2017-10-01","2017-11-01","2017-12-01","2018-01-01","2018-02-01","2018-03-01","2018-04-01","2018-05-01","2018-06-01","2018-07-01","2018-08-01","2018-09-01","2018-10-01","2018-11-01","2018-12-01","2019-01-01","2019-02-01","2019-03-01","2019-04-01","2019-05-01","2019-06-01","2019-07-01","2019-08-01","2019-09-01","2019-10-01"],"y":[62019,56003,51213,37597,24082,14469,9719,10267,9878,17385,34936,48074,54949,51711,48382,32412,18810,12205,15342,8900,9546,15308,30010,41937,66611,57425,56954,35080,18880,14898,9890,8705,9962,17677,28487,46142,65819,66232,48138,37288,22525,14349,10847,10290,11087,18636,33940,61072,70467,60260,58547,37822,18799,13426,9813,9451,10188,16847,27651,42904,56754,51753,49309,34246,23432,13856,9740,9113,9332,17278,36764,58038,68215,73655,61494,42067,25774,14955,10049,8722,9456,17149,28397,49716,68793,70343,54933,40627,22876,13061,9913,9358,9587,15734,29113,48400,66148,68368,65007,41926,26332,14675,10303,9527,9247,14360,27186,53098,57895,59815,55702,33443,18971,12339,9517,8311,9353,18626,30329,42153,57091,71739,60533,41630,20828,11861,9467,10072,9222,12674,35026,60115,64081,63546,57550,34451,20321,12552,9373,8987,10092,18790,36074,58380,77147,65066,56360,37184,18648,12235,9666,9683,10280,20411,30620,57567,71232,64645,47703,26907,17563,10723,8767,8236,9952,17571,37152,70039,77802,65821,56516,34243,16760,11118,8975,9712,9447,19250,32448,51732,65236,57566,37978,26544,15280,10722,9079,8776,9971,17856,43467,55236,68908,65792,60057,33232,17596,11134,9459,9185,11223,16594,44459,68718,79952,74901,70836,38643,26165,12363,10686,9683,11117,16260,45075,62632,89006,91107,74731,36470,18251,13069,10330,10144,10202,20674,33880,44302,74579,66686,47537,36910,22097,12799,10775,9267,9380,18301,37991,66144,72971,60363,68073,30910,20619,13858,10732,10217,10956,15457,42671,75737,91695,64908,68622,48644,19184,12523,11062,9912,10718,23307,55996,69121,89963,73087,71056,34790,22559,12623,10340,9858,10405,17779],"mode":"lines","name":"Actual","type":"scatter","marker":{"color":"rgba(31,119,180,1)","line":{"color":"rgba(31,119,180,1)"}},"error_y":{"color":"rgba(31,119,180,1)"},"error_x":{"color":"rgba(31,119,180,1)"},"line":{"color":"rgba(31,119,180,1)"},"xaxis":"x","yaxis":"y2","frame":null},{"x":["1997-01-01","1997-02-01","1997-03-01","1997-04-01","1997-05-01","1997-06-01","1997-07-01","1997-08-01","1997-09-01","1997-10-01","1997-11-01","1997-12-01","1998-01-01","1998-02-01","1998-03-01","1998-04-01","1998-05-01","1998-06-01","1998-07-01","1998-08-01","1998-09-01","1998-10-01","1998-11-01","1998-12-01","1999-01-01","1999-02-01","1999-03-01","1999-04-01","1999-05-01","1999-06-01","1999-07-01","1999-08-01","1999-09-01","1999-10-01","1999-11-01","1999-12-01","2000-01-01","2000-02-01","2000-03-01","2000-04-01","2000-05-01","2000-06-01","2000-07-01","2000-08-01","2000-09-01","2000-10-01","2000-11-01","2000-12-01","2001-01-01","2001-02-01","2001-03-01","2001-04-01","2001-05-01","2001-06-01","2001-07-01","2001-08-01","2001-09-01","2001-10-01","2001-11-01","2001-12-01","2002-01-01","2002-02-01","2002-03-01","2002-04-01","2002-05-01","2002-06-01","2002-07-01","2002-08-01","2002-09-01","2002-10-01","2002-11-01","2002-12-01","2003-01-01","2003-02-01","2003-03-01","2003-04-01","2003-05-01","2003-06-01","2003-07-01","2003-08-01","2003-09-01","2003-10-01","2003-11-01","2003-12-01","2004-01-01","2004-02-01","2004-03-01","2004-04-01","2004-05-01","2004-06-01","2004-07-01","2004-08-01","2004-09-01","2004-10-01","2004-11-01","2004-12-01","2005-01-01","2005-02-01","2005-03-01","2005-04-01","2005-05-01","2005-06-01","2005-07-01","2005-08-01","2005-09-01","2005-10-01","2005-11-01","2005-12-01","2006-01-01","2006-02-01","2006-03-01","2006-04-01","2006-05-01","2006-06-01","2006-07-01","2006-08-01","2006-09-01","2006-10-01","2006-11-01","2006-12-01","2007-01-01","2007-02-01","2007-03-01","2007-04-01","2007-05-01","2007-06-01","2007-07-01","2007-08-01","2007-09-01","2007-10-01","2007-11-01","2007-12-01","2008-01-01","2008-02-01","2008-03-01","2008-04-01","2008-05-01","2008-06-01","2008-07-01","2008-08-01","2008-09-01","2008-10-01","2008-11-01","2008-12-01","2009-01-01","2009-02-01","2009-03-01","2009-04-01","2009-05-01","2009-06-01","2009-07-01","2009-08-01","2009-09-01","2009-10-01","2009-11-01","2009-12-01","2010-01-01","2010-02-01","2010-03-01","2010-04-01","2010-05-01","2010-06-01","2010-07-01","2010-08-01","2010-09-01","2010-10-01","2010-11-01","2010-12-01","2011-01-01","2011-02-01","2011-03-01","2011-04-01","2011-05-01","2011-06-01","2011-07-01","2011-08-01","2011-09-01","2011-10-01","2011-11-01","2011-12-01","2012-01-01","2012-02-01","2012-03-01","2012-04-01","2012-05-01","2012-06-01","2012-07-01","2012-08-01","2012-09-01","2012-10-01","2012-11-01","2012-12-01","2013-01-01","2013-02-01","2013-03-01","2013-04-01","2013-05-01","2013-06-01","2013-07-01","2013-08-01","2013-09-01","2013-10-01","2013-11-01","2013-12-01","2014-01-01","2014-02-01","2014-03-01","2014-04-01","2014-05-01","2014-06-01","2014-07-01","2014-08-01","2014-09-01","2014-10-01","2014-11-01","2014-12-01","2015-01-01","2015-02-01","2015-03-01","2015-04-01","2015-05-01","2015-06-01","2015-07-01","2015-08-01","2015-09-01","2015-10-01","2015-11-01","2015-12-01","2016-01-01","2016-02-01","2016-03-01","2016-04-01","2016-05-01","2016-06-01","2016-07-01","2016-08-01","2016-09-01","2016-10-01","2016-11-01","2016-12-01","2017-01-01","2017-02-01","2017-03-01","2017-04-01","2017-05-01","2017-06-01","2017-07-01","2017-08-01","2017-09-01","2017-10-01","2017-11-01","2017-12-01","2018-01-01","2018-02-01","2018-03-01","2018-04-01","2018-05-01","2018-06-01","2018-07-01","2018-08-01","2018-09-01","2018-10-01","2018-11-01","2018-12-01","2019-01-01","2019-02-01","2019-03-01","2019-04-01","2019-05-01","2019-06-01","2019-07-01","2019-08-01","2019-09-01","2019-10-01"],"y":[66747.0753931546,61680.0753931542,54133.9449583718,32648.5101757631,17139.2058279371,9289.68408880661,6595.37974098053,5835.9014801109,6454.37974098063,13990.1623496762,32121.1470650072,52556.8288831891,67071.780001682,62004.7800016817,54458.6495668992,32973.2147842906,17463.9104364645,9614.38869733407,6920.08434950799,6160.60608863836,6779.08434950809,14314.8669582037,32445.8516735347,52881.5334917165,67396.4846102095,62329.4846102091,54783.3541754267,33297.9193928181,17788.615044992,9939.09330586153,7244.78895803545,6485.31069716582,7103.78895803555,14639.5715667311,32770.5562820621,53206.238100244,67721.189218737,62654.1892187366,55108.0587839542,33622.6240013455,18113.3196535194,10263.797914389,7569.49356656291,6810.01530569328,7428.49356656301,14964.2761752586,33095.2608905896,53530.9427087714,68045.8938272644,62978.8938272641,55432.7633924816,33947.328609873,18438.0242620469,10588.5025229164,7894.19817509037,7134.71991422074,7753.19817509047,15288.9807837861,33419.9654991171,53855.6473172989,68370.5984357919,63303.5984357915,55757.4680010091,34272.0332184004,18762.7288705744,10913.2071314439,8218.90278361783,7459.4245227482,8077.90278361793,15613.6853923135,33744.6701076445,54180.3519258264,68695.3030443193,63628.303044319,56082.1726095365,34596.7378269279,19087.4334791018,11237.9117399714,8543.60739214529,7784.12913127566,8402.60739214539,15938.390000841,34069.374716172,54505.0565343538,69020.0076528468,63953.0076528464,56406.877218064,34921.4424354554,19412.1380876293,11562.6163484988,8868.31200067275,8108.83373980312,8727.31200067285,16263.0946093684,34394.0793246995,54829.7611428813,69344.7122613743,64277.7122613739,56731.5818265915,35246.1470439828,19736.8426961567,11887.3209570263,9193.01660920021,8433.53834833058,9052.01660920031,16587.7992178959,34718.7839332269,55154.4657514087,69669.4168699017,64602.4168699014,57056.2864351189,35570.8516525103,20061.5473046842,12212.0255655537,9517.72121772767,8758.24295685804,9376.72121772777,16912.5038264234,35043.4885417544,55479.1703599362,69994.1214784292,64927.1214784288,57380.9910436464,35895.5562610377,20386.2519132117,12536.7301740812,9842.42582625513,9082.94756538551,9701.42582625523,17237.2084349508,35368.1931502818,55803.8749684637,70318.8260869566,65251.8260869563,57705.6956521738,36220.2608695652,20710.9565217391,12861.4347826087,10167.1304347826,9407.65217391297,10026.1304347827,17561.9130434783,35692.8977588093,56128.5795769911,70643.5306954841,65576.5306954837,58030.4002607013,36544.9654780927,21035.6611302666,13186.1393911361,10491.8350433101,9732.35678244043,10350.8350433102,17886.6176520057,36017.6023673368,56453.2841855186,70968.2353040116,65901.2353040112,58355.1048692288,36869.6700866201,21360.365738794,13510.8439996636,10816.5396518375,10057.0613909679,10675.5396518376,18211.3222605332,36342.3069758642,56777.988794046,71292.939912539,66225.9399125387,58679.8094777562,37194.3746951476,21685.0703473215,13835.5486081911,11141.244260365,10381.7659994953,11000.2442603651,18536.0268690607,36667.0115843917,57102.6934025735,71617.6445210665,66550.6445210661,59004.5140862837,37519.079303675,22009.774955849,14160.2532167185,11465.9488688924,10706.4706080228,11324.9488688925,18860.7314775881,36991.7161929191,57427.398011101,71942.3491295939,66875.3491295936,59329.2186948111,37843.7839122025,22334.4795643764,14484.957825246,11790.6534774199,11031.1752165503,11649.65347742,19185.4360861156,37316.4208014466,57752.1026196284,72267.0537381214,67200.053738121,59653.9233033386,38168.48852073,22659.1841729039,14809.6624337734,12115.3580859474,11355.8798250777,11974.3580859475,19510.1406946431,37641.1254099741,58076.8072281559,72591.7583466489,67524.7583466485,59978.6279118661,38493.1931292574,22983.8887814313,15134.3670423009,12440.0626944748,11680.5844336052,12299.0626944749,19834.8453031705,37965.8300185015,58401.5118366833,72916.4629551763,67849.462955176,60303.3325203935,38817.8977377849,23308.5933899588,15459.0716508284,12764.7673030023,12005.2890421327,12623.7673030024,20159.549911698,38290.534627029,58726.2164452108,73241.1675637038,68174.1675637034,60628.037128921,39142.6023463123,23633.2979984863,15783.7762593558,13089.4719115297,12329.9936506601,12948.4719115298,20484.2545202254,38615.2392355564,59050.9210537383,73565.8721722313,68498.8721722309,60952.7417374484,39467.3069548398,23958.0026070137,16108.4808678833,13414.1765200572,12654.6982591876,13273.1765200573,20808.9591287529,38939.9438440839,59375.6256622657,73890.5767807587,68823.5767807583,61277.4463459759,39792.0115633673,24282.7072155412,16433.1854764107,13738.8811285847,12979.402867715,13597.8811285848,21133.6637372804],"mode":"lines","name":"Fitted","type":"scatter","line":{"color":"red","dash":"dash"},"marker":{"color":"rgba(255,127,14,1)","line":{"color":"rgba(255,127,14,1)"}},"error_y":{"color":"rgba(255,127,14,1)"},"error_x":{"color":"rgba(255,127,14,1)"},"xaxis":"x","yaxis":"y2","frame":null},{"x":["1997-01-01","1997-02-01","1997-03-01","1997-04-01","1997-05-01","1997-06-01","1997-07-01","1997-08-01","1997-09-01","1997-10-01","1997-11-01","1997-12-01","1998-01-01","1998-02-01","1998-03-01","1998-04-01","1998-05-01","1998-06-01","1998-07-01","1998-08-01","1998-09-01","1998-10-01","1998-11-01","1998-12-01","1999-01-01","1999-02-01","1999-03-01","1999-04-01","1999-05-01","1999-06-01","1999-07-01","1999-08-01","1999-09-01","1999-10-01","1999-11-01","1999-12-01","2000-01-01","2000-02-01","2000-03-01","2000-04-01","2000-05-01","2000-06-01","2000-07-01","2000-08-01","2000-09-01","2000-10-01","2000-11-01","2000-12-01","2001-01-01","2001-02-01","2001-03-01","2001-04-01","2001-05-01","2001-06-01","2001-07-01","2001-08-01","2001-09-01","2001-10-01","2001-11-01","2001-12-01","2002-01-01","2002-02-01","2002-03-01","2002-04-01","2002-05-01","2002-06-01","2002-07-01","2002-08-01","2002-09-01","2002-10-01","2002-11-01","2002-12-01","2003-01-01","2003-02-01","2003-03-01","2003-04-01","2003-05-01","2003-06-01","2003-07-01","2003-08-01","2003-09-01","2003-10-01","2003-11-01","2003-12-01","2004-01-01","2004-02-01","2004-03-01","2004-04-01","2004-05-01","2004-06-01","2004-07-01","2004-08-01","2004-09-01","2004-10-01","2004-11-01","2004-12-01","2005-01-01","2005-02-01","2005-03-01","2005-04-01","2005-05-01","2005-06-01","2005-07-01","2005-08-01","2005-09-01","2005-10-01","2005-11-01","2005-12-01","2006-01-01","2006-02-01","2006-03-01","2006-04-01","2006-05-01","2006-06-01","2006-07-01","2006-08-01","2006-09-01","2006-10-01","2006-11-01","2006-12-01","2007-01-01","2007-02-01","2007-03-01","2007-04-01","2007-05-01","2007-06-01","2007-07-01","2007-08-01","2007-09-01","2007-10-01","2007-11-01","2007-12-01","2008-01-01","2008-02-01","2008-03-01","2008-04-01","2008-05-01","2008-06-01","2008-07-01","2008-08-01","2008-09-01","2008-10-01","2008-11-01","2008-12-01","2009-01-01","2009-02-01","2009-03-01","2009-04-01","2009-05-01","2009-06-01","2009-07-01","2009-08-01","2009-09-01","2009-10-01","2009-11-01","2009-12-01","2010-01-01","2010-02-01","2010-03-01","2010-04-01","2010-05-01","2010-06-01","2010-07-01","2010-08-01","2010-09-01","2010-10-01","2010-11-01","2010-12-01","2011-01-01","2011-02-01","2011-03-01","2011-04-01","2011-05-01","2011-06-01","2011-07-01","2011-08-01","2011-09-01","2011-10-01","2011-11-01","2011-12-01","2012-01-01","2012-02-01","2012-03-01","2012-04-01","2012-05-01","2012-06-01","2012-07-01","2012-08-01","2012-09-01","2012-10-01","2012-11-01","2012-12-01","2013-01-01","2013-02-01","2013-03-01","2013-04-01","2013-05-01","2013-06-01","2013-07-01","2013-08-01","2013-09-01","2013-10-01","2013-11-01","2013-12-01","2014-01-01","2014-02-01","2014-03-01","2014-04-01","2014-05-01","2014-06-01","2014-07-01","2014-08-01","2014-09-01","2014-10-01","2014-11-01","2014-12-01","2015-01-01","2015-02-01","2015-03-01","2015-04-01","2015-05-01","2015-06-01","2015-07-01","2015-08-01","2015-09-01","2015-10-01","2015-11-01","2015-12-01","2016-01-01","2016-02-01","2016-03-01","2016-04-01","2016-05-01","2016-06-01","2016-07-01","2016-08-01","2016-09-01","2016-10-01","2016-11-01","2016-12-01","2017-01-01","2017-02-01","2017-03-01","2017-04-01","2017-05-01","2017-06-01","2017-07-01","2017-08-01","2017-09-01","2017-10-01","2017-11-01","2017-12-01","2018-01-01","2018-02-01","2018-03-01","2018-04-01","2018-05-01","2018-06-01","2018-07-01","2018-08-01","2018-09-01","2018-10-01","2018-11-01","2018-12-01","2019-01-01","2019-02-01","2019-03-01","2019-04-01","2019-05-01","2019-06-01","2019-07-01","2019-08-01","2019-09-01","2019-10-01"],"y":[-4728.07539315459,-5677.07539315421,-2920.94495837177,4948.48982423687,6942.79417206294,5179.31591119339,3123.62025901947,4431.0985198891,3423.62025901937,3394.83765032378,2814.85293499277,-4482.82888318905,-12122.780001682,-10293.7800016817,-6076.64956689924,-561.214784290591,1346.08956353548,2590.61130266593,8421.91565049201,2739.39391136164,2766.91565049191,993.133041796318,-2435.85167353469,-10944.5334917165,-785.484610209503,-4904.48461020913,2170.6458245733,1782.08060718195,1091.38495500802,4958.90669413847,2645.21104196455,2219.68930283418,2858.21104196445,3037.42843326886,-4283.55628206215,-7064.23810024397,-1902.18921873697,3577.8107812634,-6970.05878395415,3665.37599865449,4411.68034648056,4085.20208561101,3277.50643343709,3479.98469430672,3658.50643343699,3671.7238247414,844.739109410395,7541.05729122857,2421.10617273557,-2718.89382726406,3114.23660751838,3874.67139012703,360.9757379531,2837.49747708355,1918.80182490963,2316.28008577926,2434.80182490953,1558.01921621394,-5768.96549911707,-10951.6473172989,-11616.5984357919,-11550.5984357915,-6448.46800100907,-26.0332184004365,4669.27112942564,2942.79286855609,1521.09721638217,1653.5754772518,1254.09721638207,1664.31460768648,3019.32989235547,3857.64807417364,-480.303044319342,10026.696955681,5411.82739046346,7470.26217307211,6686.56652089818,3717.08826002863,1505.39260785471,937.870868724336,1053.39260785461,1210.60999915902,-5672.37471617199,-4789.05653435381,-227.007652846805,6389.99234715356,-1473.877218064,5705.55756454464,3463.86191237072,1498.38365150117,1044.68799932725,1249.16626019688,859.687999327147,-529.094609368443,-5281.07932469945,-6429.76114288127,-3196.71226137427,4090.2877386261,8275.41817340854,6679.85295601719,6595.15730384326,2787.67904297371,1109.98339079979,1093.46165166942,194.983390799687,-2227.7992178959,-7532.78393322691,-2056.46575140873,-11774.4168699017,-4787.41686990136,-1354.28643511892,-2127.85165251028,-1090.5473046842,126.974434446251,-0.721217727670592,-447.242956858045,-23.7212177277743,1713.49617357663,-4714.48854175437,-13326.1703599362,-12903.1214784292,6811.87852157118,3152.00895635362,5734.44373896226,441.748086788335,-675.730174081211,-375.42582625513,989.052434614494,-479.425826255234,-4563.20843495083,-342.193150281833,4311.12503153634,-6237.82608695664,-1705.82608695628,-155.695652173839,-1769.26086956519,-389.956521739125,-309.434782608671,-794.130434782592,-420.652173912966,65.8695652173046,1228.08695652171,381.102241190711,2251.42042300889,6503.46930451589,-510.530695483743,-1670.4002607013,639.034521907342,-2387.66113026658,-951.13939113613,-825.835043310051,-49.3567824404272,-70.835043310155,2524.38234799425,-5397.60236733675,1113.71581448142,263.76469598843,-1256.23530401121,-10652.1048692288,-9962.67008662011,-3797.36573879404,-2787.84399966359,-2049.53965183751,-1821.06139096789,-723.539651837615,-640.322260533205,809.693024135791,13261.011205954,6509.06008746097,-404.939912538655,-2163.80947775622,-2951.37469514758,-4925.0703473215,-2717.54860819105,-2166.24426036497,-669.765999495346,-1553.24426036508,713.973130939332,-4219.01158439167,-5370.6934025735,-6381.6445210665,-8984.64452106612,-21026.5140862837,-10975.079303675,-6729.77495584897,-3438.25321671851,-2386.94886889243,-1930.47060802281,-1353.94886889254,-1004.73147758813,6475.28380708086,-2191.39801110096,-3034.34912959395,-1083.34912959358,727.781305188859,-4611.7839122025,-4738.47956437643,-3350.95782524597,-2331.65347741989,-1846.17521655027,-426.653477419997,-2591.43608611559,7142.57919855341,10965.8973803716,7684.94626187859,7700.94626187895,11182.0766966614,474.511479270041,3505.81582709611,-2446.66243377343,-1429.35808594735,-1672.87982507773,-857.358085947457,-3250.14069464305,7433.87459002595,4555.19277184412,16414.2416533511,23582.2416533515,14752.3720881339,-2023.19312925742,-4732.88878143135,-2065.36704230089,-2110.06269447481,-1536.58443360519,-2097.06269447492,839.15469682949,-4085.83001850151,-14099.5118366833,1662.53704482366,-1163.46295517596,-12766.3325203935,-1907.89773778488,-1211.59338995881,-2660.07165082835,-1989.76730300227,-2738.28904213265,-3243.76730300238,-1858.54991169797,-299.534627028974,7417.7835547892,-270.167563703799,-7811.16756370342,7444.96287107901,-8232.60234631234,-3014.29799848627,-1925.77625935581,-2357.47191152973,-2112.99365066011,-1992.47191152984,-5027.25452022543,4055.76076444356,16686.0789462617,18129.1278277687,-3590.87217223088,7669.25826255156,9176.6930451602,-4774.00260701373,-3585.48086788327,-2352.1765200572,-2742.69825918757,-2555.1765200573,2498.04087124711,17056.0561559161,9745.37433773428,16072.4232192413,4263.42321924165,9778.55365402409,-5002.01156336726,-1723.70721554119,-3810.18547641073,-3398.88112858466,-3121.40286771503,-3192.88112858476,-3354.66373728035],"mode":"lines","line":{"color":"green"},"name":"Residuals","type":"scatter","marker":{"color":"rgba(44,160,44,1)","line":{"color":"rgba(44,160,44,1)"}},"error_y":{"color":"rgba(44,160,44,1)"},"error_x":{"color":"rgba(44,160,44,1)"},"xaxis":"x","yaxis":"y","frame":null},{"x":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"y":[1,0.539423352836726,0.294760502615859,0.150458056166125,-0.00361084858232747,-0.166499321687991,-0.15910664164233,-0.146639450477007,-0.109596697443597,-0.0660586722851308,0.103960645520309,0.179571018808107,0.20074258806849,0.145308631879455,0.0740171833345669,-0.0725740484068258,-0.10769253687058,-0.146167698138407,-0.168432348942859,-0.171475304726214,-0.127776339849979,-0.119421808910393,0.00606584025612012,0.0984041082362251,0.0627565847653624,0.0034115189811004,0.0510825205003614,-0.0322175838038044,-0.0832937297002862,-0.0829948587033265,-0.0935757844397464,-0.140527888367085,-0.152867839609511,-0.0637634663996236,0.0225330402165922,-0.0381343536601063,0.0306235022368569],"type":"bar","width":[0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01],"showlegend":false,"marker":{"color":"#00526d","line":{"color":"#00526d"}},"name":"Autocorrelation","error_y":{"color":"rgba(214,39,40,1)"},"error_x":{"color":"rgba(214,39,40,1)"},"xaxis":"x2","yaxis":"y4","frame":null},{"x":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"y":[0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209,0.118405754519209],"type":"scatter","mode":"lines","line":{"color":"red","dash":"dash","width":1},"showlegend":false,"name":"CI Upper","marker":{"color":"rgba(148,103,189,1)","line":{"color":"rgba(148,103,189,1)"}},"error_y":{"color":"rgba(148,103,189,1)"},"error_x":{"color":"rgba(148,103,189,1)"},"xaxis":"x2","yaxis":"y4","frame":null},{"x":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"y":[-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209,-0.118405754519209],"type":"scatter","mode":"lines","line":{"color":"red","dash":"dash","width":1},"showlegend":false,"name":"CI Lower","marker":{"color":"rgba(140,86,75,1)","line":{"color":"rgba(140,86,75,1)"}},"error_y":{"color":"rgba(140,86,75,1)"},"error_x":{"color":"rgba(140,86,75,1)"},"xaxis":"x2","yaxis":"y4","frame":null},{"x":[-4728.07539315459,-5677.07539315421,-2920.94495837177,4948.48982423687,6942.79417206294,5179.31591119339,3123.62025901947,4431.0985198891,3423.62025901937,3394.83765032378,2814.85293499277,-4482.82888318905,-12122.780001682,-10293.7800016817,-6076.64956689924,-561.214784290591,1346.08956353548,2590.61130266593,8421.91565049201,2739.39391136164,2766.91565049191,993.133041796318,-2435.85167353469,-10944.5334917165,-785.484610209503,-4904.48461020913,2170.6458245733,1782.08060718195,1091.38495500802,4958.90669413847,2645.21104196455,2219.68930283418,2858.21104196445,3037.42843326886,-4283.55628206215,-7064.23810024397,-1902.18921873697,3577.8107812634,-6970.05878395415,3665.37599865449,4411.68034648056,4085.20208561101,3277.50643343709,3479.98469430672,3658.50643343699,3671.7238247414,844.739109410395,7541.05729122857,2421.10617273557,-2718.89382726406,3114.23660751838,3874.67139012703,360.9757379531,2837.49747708355,1918.80182490963,2316.28008577926,2434.80182490953,1558.01921621394,-5768.96549911707,-10951.6473172989,-11616.5984357919,-11550.5984357915,-6448.46800100907,-26.0332184004365,4669.27112942564,2942.79286855609,1521.09721638217,1653.5754772518,1254.09721638207,1664.31460768648,3019.32989235547,3857.64807417364,-480.303044319342,10026.696955681,5411.82739046346,7470.26217307211,6686.56652089818,3717.08826002863,1505.39260785471,937.870868724336,1053.39260785461,1210.60999915902,-5672.37471617199,-4789.05653435381,-227.007652846805,6389.99234715356,-1473.877218064,5705.55756454464,3463.86191237072,1498.38365150117,1044.68799932725,1249.16626019688,859.687999327147,-529.094609368443,-5281.07932469945,-6429.76114288127,-3196.71226137427,4090.2877386261,8275.41817340854,6679.85295601719,6595.15730384326,2787.67904297371,1109.98339079979,1093.46165166942,194.983390799687,-2227.7992178959,-7532.78393322691,-2056.46575140873,-11774.4168699017,-4787.41686990136,-1354.28643511892,-2127.85165251028,-1090.5473046842,126.974434446251,-0.721217727670592,-447.242956858045,-23.7212177277743,1713.49617357663,-4714.48854175437,-13326.1703599362,-12903.1214784292,6811.87852157118,3152.00895635362,5734.44373896226,441.748086788335,-675.730174081211,-375.42582625513,989.052434614494,-479.425826255234,-4563.20843495083,-342.193150281833,4311.12503153634,-6237.82608695664,-1705.82608695628,-155.695652173839,-1769.26086956519,-389.956521739125,-309.434782608671,-794.130434782592,-420.652173912966,65.8695652173046,1228.08695652171,381.102241190711,2251.42042300889,6503.46930451589,-510.530695483743,-1670.4002607013,639.034521907342,-2387.66113026658,-951.13939113613,-825.835043310051,-49.3567824404272,-70.835043310155,2524.38234799425,-5397.60236733675,1113.71581448142,263.76469598843,-1256.23530401121,-10652.1048692288,-9962.67008662011,-3797.36573879404,-2787.84399966359,-2049.53965183751,-1821.06139096789,-723.539651837615,-640.322260533205,809.693024135791,13261.011205954,6509.06008746097,-404.939912538655,-2163.80947775622,-2951.37469514758,-4925.0703473215,-2717.54860819105,-2166.24426036497,-669.765999495346,-1553.24426036508,713.973130939332,-4219.01158439167,-5370.6934025735,-6381.6445210665,-8984.64452106612,-21026.5140862837,-10975.079303675,-6729.77495584897,-3438.25321671851,-2386.94886889243,-1930.47060802281,-1353.94886889254,-1004.73147758813,6475.28380708086,-2191.39801110096,-3034.34912959395,-1083.34912959358,727.781305188859,-4611.7839122025,-4738.47956437643,-3350.95782524597,-2331.65347741989,-1846.17521655027,-426.653477419997,-2591.43608611559,7142.57919855341,10965.8973803716,7684.94626187859,7700.94626187895,11182.0766966614,474.511479270041,3505.81582709611,-2446.66243377343,-1429.35808594735,-1672.87982507773,-857.358085947457,-3250.14069464305,7433.87459002595,4555.19277184412,16414.2416533511,23582.2416533515,14752.3720881339,-2023.19312925742,-4732.88878143135,-2065.36704230089,-2110.06269447481,-1536.58443360519,-2097.06269447492,839.15469682949,-4085.83001850151,-14099.5118366833,1662.53704482366,-1163.46295517596,-12766.3325203935,-1907.89773778488,-1211.59338995881,-2660.07165082835,-1989.76730300227,-2738.28904213265,-3243.76730300238,-1858.54991169797,-299.534627028974,7417.7835547892,-270.167563703799,-7811.16756370342,7444.96287107901,-8232.60234631234,-3014.29799848627,-1925.77625935581,-2357.47191152973,-2112.99365066011,-1992.47191152984,-5027.25452022543,4055.76076444356,16686.0789462617,18129.1278277687,-3590.87217223088,7669.25826255156,9176.6930451602,-4774.00260701373,-3585.48086788327,-2352.1765200572,-2742.69825918757,-2555.1765200573,2498.04087124711,17056.0561559161,9745.37433773428,16072.4232192413,4263.42321924165,9778.55365402409,-5002.01156336726,-1723.70721554119,-3810.18547641073,-3398.88112858466,-3121.40286771503,-3192.88112858476,-3354.66373728035],"marker":{"color":"rgb(227, 119, 194)","line":{"color":"rgba(227,119,194,1)"}},"name":"Residauls Dist.","type":"histogram","error_y":{"color":"rgba(227,119,194,1)"},"error_x":{"color":"rgba(227,119,194,1)"},"xaxis":"x3","yaxis":"y3","frame":null}],"layout":{"xaxis":{"domain":[0,1],"automargin":true,"title":"Index","anchor":"y","range":["1997-01-01","2019-10-01"]},"xaxis2":{"domain":[0,0.46],"automargin":true,"title":"Lag","anchor":"y4"},"xaxis3":{"domain":[0.54,1],"automargin":true,"title":"Residuals Distribution","anchor":"y3"},"yaxis3":{"domain":[0,0.36],"automargin":true,"title":"Count","anchor":"x3"},"yaxis4":{"domain":[0,0.36],"automargin":true,"title":"ACF","anchor":"x2"},"yaxis":{"domain":[0.44,0.7088],"automargin":true,"title":"Residuals","anchor":"x"},"yaxis2":{"domain":[0.7312,1],"automargin":true,"title":"Fitted vs. Actuals","anchor":"x"},"annotations":[],"shapes":[],"images":[],"margin":{"b":40,"l":60,"t":25,"r":10},"hovermode":"closest","showlegend":false,"title":"Residuals Analysis"},"attrs":{"ab3fa11f5fe":{"x":{},"y":{},"mode":"lines","name":"Actual","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"scatter"},"ab3fa11f5fe.1":{"x":{},"y":{},"mode":"lines","name":"Fitted","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"scatter","line":{"dash":"dash","color":"red"},"inherit":true},"ab3f212cfbdc":{"x":{},"y":{},"mode":"lines","line":{"color":"green"},"name":"Residuals","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"scatter"},"ab3f104b3988":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":{},"y":{},"type":"bar","width":0.01,"showlegend":false,"marker":{"color":"#00526d","line":{"color":"#00526d"}},"name":"Autocorrelation","inherit":true},"ab3f104b3988.1":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":{},"y":{},"type":"scatter","mode":"lines","line":{"dash":"dash","color":"red","width":1},"showlegend":false,"name":"CI Upper","inherit":true},"ab3f104b3988.2":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":{},"y":{},"type":"scatter","mode":"lines","line":{"dash":"dash","color":"red","width":1},"showlegend":false,"name":"CI Lower","inherit":true},"ab3f3aae1813":{"x":[-4728.07539315459,-5677.07539315421,-2920.94495837177,4948.48982423687,6942.79417206294,5179.31591119339,3123.62025901947,4431.0985198891,3423.62025901937,3394.83765032378,2814.85293499277,-4482.82888318905,-12122.780001682,-10293.7800016817,-6076.64956689924,-561.214784290591,1346.08956353548,2590.61130266593,8421.91565049201,2739.39391136164,2766.91565049191,993.133041796318,-2435.85167353469,-10944.5334917165,-785.484610209503,-4904.48461020913,2170.6458245733,1782.08060718195,1091.38495500802,4958.90669413847,2645.21104196455,2219.68930283418,2858.21104196445,3037.42843326886,-4283.55628206215,-7064.23810024397,-1902.18921873697,3577.8107812634,-6970.05878395415,3665.37599865449,4411.68034648056,4085.20208561101,3277.50643343709,3479.98469430672,3658.50643343699,3671.7238247414,844.739109410395,7541.05729122857,2421.10617273557,-2718.89382726406,3114.23660751838,3874.67139012703,360.9757379531,2837.49747708355,1918.80182490963,2316.28008577926,2434.80182490953,1558.01921621394,-5768.96549911707,-10951.6473172989,-11616.5984357919,-11550.5984357915,-6448.46800100907,-26.0332184004365,4669.27112942564,2942.79286855609,1521.09721638217,1653.5754772518,1254.09721638207,1664.31460768648,3019.32989235547,3857.64807417364,-480.303044319342,10026.696955681,5411.82739046346,7470.26217307211,6686.56652089818,3717.08826002863,1505.39260785471,937.870868724336,1053.39260785461,1210.60999915902,-5672.37471617199,-4789.05653435381,-227.007652846805,6389.99234715356,-1473.877218064,5705.55756454464,3463.86191237072,1498.38365150117,1044.68799932725,1249.16626019688,859.687999327147,-529.094609368443,-5281.07932469945,-6429.76114288127,-3196.71226137427,4090.2877386261,8275.41817340854,6679.85295601719,6595.15730384326,2787.67904297371,1109.98339079979,1093.46165166942,194.983390799687,-2227.7992178959,-7532.78393322691,-2056.46575140873,-11774.4168699017,-4787.41686990136,-1354.28643511892,-2127.85165251028,-1090.5473046842,126.974434446251,-0.721217727670592,-447.242956858045,-23.7212177277743,1713.49617357663,-4714.48854175437,-13326.1703599362,-12903.1214784292,6811.87852157118,3152.00895635362,5734.44373896226,441.748086788335,-675.730174081211,-375.42582625513,989.052434614494,-479.425826255234,-4563.20843495083,-342.193150281833,4311.12503153634,-6237.82608695664,-1705.82608695628,-155.695652173839,-1769.26086956519,-389.956521739125,-309.434782608671,-794.130434782592,-420.652173912966,65.8695652173046,1228.08695652171,381.102241190711,2251.42042300889,6503.46930451589,-510.530695483743,-1670.4002607013,639.034521907342,-2387.66113026658,-951.13939113613,-825.835043310051,-49.3567824404272,-70.835043310155,2524.38234799425,-5397.60236733675,1113.71581448142,263.76469598843,-1256.23530401121,-10652.1048692288,-9962.67008662011,-3797.36573879404,-2787.84399966359,-2049.53965183751,-1821.06139096789,-723.539651837615,-640.322260533205,809.693024135791,13261.011205954,6509.06008746097,-404.939912538655,-2163.80947775622,-2951.37469514758,-4925.0703473215,-2717.54860819105,-2166.24426036497,-669.765999495346,-1553.24426036508,713.973130939332,-4219.01158439167,-5370.6934025735,-6381.6445210665,-8984.64452106612,-21026.5140862837,-10975.079303675,-6729.77495584897,-3438.25321671851,-2386.94886889243,-1930.47060802281,-1353.94886889254,-1004.73147758813,6475.28380708086,-2191.39801110096,-3034.34912959395,-1083.34912959358,727.781305188859,-4611.7839122025,-4738.47956437643,-3350.95782524597,-2331.65347741989,-1846.17521655027,-426.653477419997,-2591.43608611559,7142.57919855341,10965.8973803716,7684.94626187859,7700.94626187895,11182.0766966614,474.511479270041,3505.81582709611,-2446.66243377343,-1429.35808594735,-1672.87982507773,-857.358085947457,-3250.14069464305,7433.87459002595,4555.19277184412,16414.2416533511,23582.2416533515,14752.3720881339,-2023.19312925742,-4732.88878143135,-2065.36704230089,-2110.06269447481,-1536.58443360519,-2097.06269447492,839.15469682949,-4085.83001850151,-14099.5118366833,1662.53704482366,-1163.46295517596,-12766.3325203935,-1907.89773778488,-1211.59338995881,-2660.07165082835,-1989.76730300227,-2738.28904213265,-3243.76730300238,-1858.54991169797,-299.534627028974,7417.7835547892,-270.167563703799,-7811.16756370342,7444.96287107901,-8232.60234631234,-3014.29799848627,-1925.77625935581,-2357.47191152973,-2112.99365066011,-1992.47191152984,-5027.25452022543,4055.76076444356,16686.0789462617,18129.1278277687,-3590.87217223088,7669.25826255156,9176.6930451602,-4774.00260701373,-3585.48086788327,-2352.1765200572,-2742.69825918757,-2555.1765200573,2498.04087124711,17056.0561559161,9745.37433773428,16072.4232192413,4263.42321924165,9778.55365402409,-5002.01156336726,-1723.70721554119,-3810.18547641073,-3398.88112858466,-3121.40286771503,-3192.88112858476,-3354.66373728035],"marker":{"color":"rgb(227, 119, 194)"},"name":"Residauls Dist.","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"histogram"}},"source":"A","config":{"showSendToCloud":false},"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.2,"selected":{"opacity":1},"debounce":0},"subplot":true,".hideLegend":true,"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}
Adding lags regressors
As can see in the ACF plot on the residual plot above, the residuals are correlated. This mainly implies that some patterns left on the data which the model did not capture. One way to capture those patterns is by regress the series with its past lags. This is generally equivalent to an AR (Autoregressive) process. The lags
argument enables you to add lags regressor by defining the lags number. For example, let’s add to the model the first and seasonal lags by setting the lags argument to c(1, 12)
:
md2 <- trainLM(input = ny_gas,
y = "y",
trend = list(linear = TRUE),
seasonal = "month",
lags = c(1,12))
summary(md2$model)
##
## Call:
## stats::lm(formula = f, data = df1)
##
## Residuals:
## Min 1Q Median 3Q Max
## -16244.65 -1722.06 -127.02 1737.53 15241.24
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 32265.964782 4365.570790 7.3910 0.00000000000224972 ***
## monthFeb -12055.401516 1722.177908 -7.0001 0.00000000002402279 ***
## monthMar -16236.106785 1758.014778 -9.2355 < 0.00000000000000022 ***
## monthApr -31687.887252 2407.133951 -13.1642 < 0.00000000000000022 ***
## monthMay -34236.087062 3128.014939 -10.9450 < 0.00000000000000022 ***
## monthJun -33093.376259 3698.769808 -8.9471 < 0.00000000000000022 ***
## monthJul -31397.220717 3977.363059 -7.8940 0.00000000000009549 ***
## monthAug -30800.918841 4071.729734 -7.5646 0.00000000000076668 ***
## monthSep -29800.859834 4068.696270 -7.3244 0.00000000000338633 ***
## monthOct -23509.033810 3764.733548 -6.2445 0.00000000184222790 ***
## monthNov -11343.231562 2975.266737 -3.8125 0.0001738 ***
## monthDec -2268.087593 1939.589740 -1.1694 0.2433840
## linear_trend 10.714705 4.418472 2.4250 0.0160272 *
## lag_1 0.513078 0.054328 9.4441 < 0.00000000000000022 ***
## lag_12 0.118482 0.056521 2.0962 0.0370788 *
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 4895.8 on 247 degrees of freedom
## Multiple R-squared: 0.95857, Adjusted R-squared: 0.95622
## F-statistic: 408.16 on 14 and 247 DF, p-value: < 0.000000000000000222
You can see on the summary of the model above that two additional variables were added by the trainLM
function – lag_1
and lag_12
, corresponding to the first and seasonal lags of the series. Those new features added to the input series and available on the output of the trained model:
head(md2$series, 13)
## # A tsibble: 13 x 6 [1M]
## date y month linear_trend lag_1 lag_12
##
## 1 1997 Jan 62019 Jan 1 NA NA
## 2 1997 Feb 56003 Feb 2 62019 NA
## 3 1997 Mar 51213 Mar 3 56003 NA
## 4 1997 Apr 37597 Apr 4 51213 NA
## 5 1997 May 24082 May 5 37597 NA
## 6 1997 Jun 14469 Jun 6 24082 NA
## 7 1997 Jul 9719 Jul 7 14469 NA
## 8 1997 Aug 10267 Aug 8 9719 NA
## 9 1997 Sep 9878 Sep 9 10267 NA
## 10 1997 Oct 17385 Oct 10 9878 NA
## 11 1997 Nov 34936 Nov 11 17385 NA
## 12 1997 Dec 48074 Dec 12 34936 NA
## 13 1998 Jan 54949 Jan 13 48074 62019
In this case, as can notice in the residuals plot below, the lag variables helped in reducing the correlation of the residuals.
plot_res(md2)
{"x":{"data":[{"x":["1997-01-01","1997-02-01","1997-03-01","1997-04-01","1997-05-01","1997-06-01","1997-07-01","1997-08-01","1997-09-01","1997-10-01","1997-11-01","1997-12-01","1998-01-01","1998-02-01","1998-03-01","1998-04-01","1998-05-01","1998-06-01","1998-07-01","1998-08-01","1998-09-01","1998-10-01","1998-11-01","1998-12-01","1999-01-01","1999-02-01","1999-03-01","1999-04-01","1999-05-01","1999-06-01","1999-07-01","1999-08-01","1999-09-01","1999-10-01","1999-11-01","1999-12-01","2000-01-01","2000-02-01","2000-03-01","2000-04-01","2000-05-01","2000-06-01","2000-07-01","2000-08-01","2000-09-01","2000-10-01","2000-11-01","2000-12-01","2001-01-01","2001-02-01","2001-03-01","2001-04-01","2001-05-01","2001-06-01","2001-07-01","2001-08-01","2001-09-01","2001-10-01","2001-11-01","2001-12-01","2002-01-01","2002-02-01","2002-03-01","2002-04-01","2002-05-01","2002-06-01","2002-07-01","2002-08-01","2002-09-01","2002-10-01","2002-11-01","2002-12-01","2003-01-01","2003-02-01","2003-03-01","2003-04-01","2003-05-01","2003-06-01","2003-07-01","2003-08-01","2003-09-01","2003-10-01","2003-11-01","2003-12-01","2004-01-01","2004-02-01","2004-03-01","2004-04-01","2004-05-01","2004-06-01","2004-07-01","2004-08-01","2004-09-01","2004-10-01","2004-11-01","2004-12-01","2005-01-01","2005-02-01","2005-03-01","2005-04-01","2005-05-01","2005-06-01","2005-07-01","2005-08-01","2005-09-01","2005-10-01","2005-11-01","2005-12-01","2006-01-01","2006-02-01","2006-03-01","2006-04-01","2006-05-01","2006-06-01","2006-07-01","2006-08-01","2006-09-01","2006-10-01","2006-11-01","2006-12-01","2007-01-01","2007-02-01","2007-03-01","2007-04-01","2007-05-01","2007-06-01","2007-07-01","2007-08-01","2007-09-01","2007-10-01","2007-11-01","2007-12-01","2008-01-01","2008-02-01","2008-03-01","2008-04-01","2008-05-01","2008-06-01","2008-07-01","2008-08-01","2008-09-01","2008-10-01","2008-11-01","2008-12-01","2009-01-01","2009-02-01","2009-03-01","2009-04-01","2009-05-01","2009-06-01","2009-07-01","2009-08-01","2009-09-01","2009-10-01","2009-11-01","2009-12-01","2010-01-01","2010-02-01","2010-03-01","2010-04-01","2010-05-01","2010-06-01","2010-07-01","2010-08-01","2010-09-01","2010-10-01","2010-11-01","2010-12-01","2011-01-01","2011-02-01","2011-03-01","2011-04-01","2011-05-01","2011-06-01","2011-07-01","2011-08-01","2011-09-01","2011-10-01","2011-11-01","2011-12-01","2012-01-01","2012-02-01","2012-03-01","2012-04-01","2012-05-01","2012-06-01","2012-07-01","2012-08-01","2012-09-01","2012-10-01","2012-11-01","2012-12-01","2013-01-01","2013-02-01","2013-03-01","2013-04-01","2013-05-01","2013-06-01","2013-07-01","2013-08-01","2013-09-01","2013-10-01","2013-11-01","2013-12-01","2014-01-01","2014-02-01","2014-03-01","2014-04-01","2014-05-01","2014-06-01","2014-07-01","2014-08-01","2014-09-01","2014-10-01","2014-11-01","2014-12-01","2015-01-01","2015-02-01","2015-03-01","2015-04-01","2015-05-01","2015-06-01","2015-07-01","2015-08-01","2015-09-01","2015-10-01","2015-11-01","2015-12-01","2016-01-01","2016-02-01","2016-03-01","2016-04-01","2016-05-01","2016-06-01","2016-07-01","2016-08-01","2016-09-01","2016-10-01","2016-11-01","2016-12-01","2017-01-01","2017-02-01","2017-03-01","2017-04-01","2017-05-01","2017-06-01","2017-07-01","2017-08-01","2017-09-01","2017-10-01","2017-11-01","2017-12-01","2018-01-01","2018-02-01","2018-03-01","2018-04-01","2018-05-01","2018-06-01","2018-07-01","2018-08-01","2018-09-01","2018-10-01","2018-11-01","2018-12-01","2019-01-01","2019-02-01","2019-03-01","2019-04-01","2019-05-01","2019-06-01","2019-07-01","2019-08-01","2019-09-01","2019-10-01"],"y":[62019,56003,51213,37597,24082,14469,9719,10267,9878,17385,34936,48074,54949,51711,48382,32412,18810,12205,15342,8900,9546,15308,30010,41937,66611,57425,56954,35080,18880,14898,9890,8705,9962,17677,28487,46142,65819,66232,48138,37288,22525,14349,10847,10290,11087,18636,33940,61072,70467,60260,58547,37822,18799,13426,9813,9451,10188,16847,27651,42904,56754,51753,49309,34246,23432,13856,9740,9113,9332,17278,36764,58038,68215,73655,61494,42067,25774,14955,10049,8722,9456,17149,28397,49716,68793,70343,54933,40627,22876,13061,9913,9358,9587,15734,29113,48400,66148,68368,65007,41926,26332,14675,10303,9527,9247,14360,27186,53098,57895,59815,55702,33443,18971,12339,9517,8311,9353,18626,30329,42153,57091,71739,60533,41630,20828,11861,9467,10072,9222,12674,35026,60115,64081,63546,57550,34451,20321,12552,9373,8987,10092,18790,36074,58380,77147,65066,56360,37184,18648,12235,9666,9683,10280,20411,30620,57567,71232,64645,47703,26907,17563,10723,8767,8236,9952,17571,37152,70039,77802,65821,56516,34243,16760,11118,8975,9712,9447,19250,32448,51732,65236,57566,37978,26544,15280,10722,9079,8776,9971,17856,43467,55236,68908,65792,60057,33232,17596,11134,9459,9185,11223,16594,44459,68718,79952,74901,70836,38643,26165,12363,10686,9683,11117,16260,45075,62632,89006,91107,74731,36470,18251,13069,10330,10144,10202,20674,33880,44302,74579,66686,47537,36910,22097,12799,10775,9267,9380,18301,37991,66144,72971,60363,68073,30910,20619,13858,10732,10217,10956,15457,42671,75737,91695,64908,68622,48644,19184,12523,11062,9912,10718,23307,55996,69121,89963,73087,71056,34790,22559,12623,10340,9858,10405,17779],"mode":"lines","name":"Actual","type":"scatter","marker":{"color":"rgba(31,119,180,1)","line":{"color":"rgba(31,119,180,1)"}},"error_y":{"color":"rgba(31,119,180,1)"},"error_x":{"color":"rgba(31,119,180,1)"},"line":{"color":"rgba(31,119,180,1)"},"xaxis":"x","yaxis":"y2","frame":null},{"x":["1998-01-01","1998-02-01","1998-03-01","1998-04-01","1998-05-01","1998-06-01","1998-07-01","1998-08-01","1998-09-01","1998-10-01","1998-11-01","1998-12-01","1999-01-01","1999-02-01","1999-03-01","1999-04-01","1999-05-01","1999-06-01","1999-07-01","1999-08-01","1999-09-01","1999-10-01","1999-11-01","1999-12-01","2000-01-01","2000-02-01","2000-03-01","2000-04-01","2000-05-01","2000-06-01","2000-07-01","2000-08-01","2000-09-01","2000-10-01","2000-11-01","2000-12-01","2001-01-01","2001-02-01","2001-03-01","2001-04-01","2001-05-01","2001-06-01","2001-07-01","2001-08-01","2001-09-01","2001-10-01","2001-11-01","2001-12-01","2002-01-01","2002-02-01","2002-03-01","2002-04-01","2002-05-01","2002-06-01","2002-07-01","2002-08-01","2002-09-01","2002-10-01","2002-11-01","2002-12-01","2003-01-01","2003-02-01","2003-03-01","2003-04-01","2003-05-01","2003-06-01","2003-07-01","2003-08-01","2003-09-01","2003-10-01","2003-11-01","2003-12-01","2004-01-01","2004-02-01","2004-03-01","2004-04-01","2004-05-01","2004-06-01","2004-07-01","2004-08-01","2004-09-01","2004-10-01","2004-11-01","2004-12-01","2005-01-01","2005-02-01","2005-03-01","2005-04-01","2005-05-01","2005-06-01","2005-07-01","2005-08-01","2005-09-01","2005-10-01","2005-11-01","2005-12-01","2006-01-01","2006-02-01","2006-03-01","2006-04-01","2006-05-01","2006-06-01","2006-07-01","2006-08-01","2006-09-01","2006-10-01","2006-11-01","2006-12-01","2007-01-01","2007-02-01","2007-03-01","2007-04-01","2007-05-01","2007-06-01","2007-07-01","2007-08-01","2007-09-01","2007-10-01","2007-11-01","2007-12-01","2008-01-01","2008-02-01","2008-03-01","2008-04-01","2008-05-01","2008-06-01","2008-07-01","2008-08-01","2008-09-01","2008-10-01","2008-11-01","2008-12-01","2009-01-01","2009-02-01","2009-03-01","2009-04-01","2009-05-01","2009-06-01","2009-07-01","2009-08-01","2009-09-01","2009-10-01","2009-11-01","2009-12-01","2010-01-01","2010-02-01","2010-03-01","2010-04-01","2010-05-01","2010-06-01","2010-07-01","2010-08-01","2010-09-01","2010-10-01","2010-11-01","2010-12-01","2011-01-01","2011-02-01","2011-03-01","2011-04-01","2011-05-01","2011-06-01","2011-07-01","2011-08-01","2011-09-01","2011-10-01","2011-11-01","2011-12-01","2012-01-01","2012-02-01","2012-03-01","2012-04-01","2012-05-01","2012-06-01","2012-07-01","2012-08-01","2012-09-01","2012-10-01","2012-11-01","2012-12-01","2013-01-01","2013-02-01","2013-03-01","2013-04-01","2013-05-01","2013-06-01","2013-07-01","2013-08-01","2013-09-01","2013-10-01","2013-11-01","2013-12-01","2014-01-01","2014-02-01","2014-03-01","2014-04-01","2014-05-01","2014-06-01","2014-07-01","2014-08-01","2014-09-01","2014-10-01","2014-11-01","2014-12-01","2015-01-01","2015-02-01","2015-03-01","2015-04-01","2015-05-01","2015-06-01","2015-07-01","2015-08-01","2015-09-01","2015-10-01","2015-11-01","2015-12-01","2016-01-01","2016-02-01","2016-03-01","2016-04-01","2016-05-01","2016-06-01","2016-07-01","2016-08-01","2016-09-01","2016-10-01","2016-11-01","2016-12-01","2017-01-01","2017-02-01","2017-03-01","2017-04-01","2017-05-01","2017-06-01","2017-07-01","2017-08-01","2017-09-01","2017-10-01","2017-11-01","2017-12-01","2018-01-01","2018-02-01","2018-03-01","2018-04-01","2018-05-01","2018-06-01","2018-07-01","2018-08-01","2018-09-01","2018-10-01","2018-11-01","2018-12-01","2019-01-01","2019-02-01","2019-03-01","2019-04-01","2019-05-01","2019-06-01","2019-07-01","2019-08-01","2019-09-01","2019-10-01"],"y":[64419.1215063758,55189.0601891468,48790.1929981345,30027.8379302355,17695.2070856651,10730.7732798429,8485.97145809044,10767.4429107256,8426.87653031341,15950.3105887282,33162.6632738128,51348.4166383567,60561.268208887,60792.6311452249,51515.0763422963,33940.1923903388,18568.0391705945,10627.0218727017,10662.4924092057,7936.75138375116,8416.06668262984,16046.240425294,33923.0797277029,49968.4504876546,64229.0766741414,61191.8559963602,57177.9617371394,29861.5804363663,19837.7863235388,12944.8409909073,9863.42475065284,8533.23980819868,9407.16082689258,17032.7139784318,34363.2501496589,53393.0600752627,71924.0747661896,64748.6919143083,53197.8967084313,35592.397558957,20672.2136786484,11096.6409696005,9631.81724088941,8319.08733010307,9238.55688050594,16813.6573125889,34220.012095306,52063.8239182672,63281.748761082,57133.8505068235,50194.9954872785,31044.4258619214,18524.5579411904,13492.9503900167,9858.50694961249,8310.8026400916,9087.19751123663,16291.0743481047,33824.5917224909,54715.5013294527,69550.5082952793,62134.8908889498,60466.4762950027,37001.1699285713,23214.8473212507,14874.1035757698,10542.3073061609,8557.87337645518,8913.73971873088,16534.3382887121,34966.707983417,52344.2587486117,66767.1696784673,65155.020432488,60339.4410941583,34690.0875908704,22882.0759527699,13645.9908227967,9735.72437498558,8570.34470920361,9383.32577368206,16714.8438309752,33377.9393258972,51854.1916960577,66289.0176905431,63534.0921842733,58677.3271519183,39816.8009647775,23333.7801902068,15323.3609852754,10676.2957004575,8974.37630428943,9614.13362469771,16501.3215685191,32886.3793176232,50838.1438528572,68514.6511162754,59194.2311811056,55611.1328418385,35325.0917862703,19519.3871722788,11866.3979175995,9652.52919501666,8719.69667172799,9078.52294973012,16521.4900034336,34975.4330166386,53135.9541567161,62049.752964858,57896.9157199624,60755.1798149857,36927.2664357834,22976.3895413862,12670.9867716978,9442.72733147236,8678.54505129025,10123.1894446389,17088.2976232429,32422.556361077,54377.6735094747,71298.9827569388,63024.6896197415,57252.4923269924,36495.3427781151,19641.5978666067,12482.7981073426,9919.91681808331,8967.53904005614,9679.55477832225,16958.0470855902,36245.6300462541,57172.1305989207,71365.5578392741,68886.4240781184,57807.5159004461,35162.7734164448,21112.3469992955,11834.8656283891,9874.71014193725,9117.89443368453,10268.3131403076,17907.7184793751,37330.0756643051,54296.8115217965,72625.0880591344,66160.2349574507,57579.0927542777,31173.4422494059,15769.7970425491,11369.1933012285,9262.22741855476,8867.67698933646,9676.73989312621,18060.0646531871,35355.3085966619,57680.4897086242,78451.956096148,69609.8550833073,57285.3502457812,34606.1379999749,19533.763086593,10906.6230151961,9486.95446228483,8931.53022403772,10523.7578564732,17593.0475491759,37119.2683063769,56873.2538255554,69966.0346991056,63430.4241916816,54222.6474149082,26092.4527580352,15617.0084357868,10322.6439670973,9436.99617673977,9288.34633781163,10112.259574956,18189.4084155457,35975.2740338722,60486.3895215953,70403.5922098038,64464.9549681362,56375.3859932889,36637.0923006476,19001.6993157648,11592.5909450984,9789.28304570335,9500.99337089158,10512.7696689115,18795.1949711699,36761.8993340026,61539.1007813345,77884.5567459761,71234.6017899161,63793.5580588306,43088.5479768938,22180.9470258605,16166.5501903492,10593.4559521783,10307.5761000933,11045.1986645009,18719.8607902858,36836.6418299506,63581.1084609095,76199.0542523989,77087.8423908284,73514.1998671037,45856.6708818487,22209.8769544612,12380.2392200581,11229.6431883987,10312.5007413794,11397.7451414562,18339.3975837465,39302.9309681367,57244.6913250143,67995.6414599662,71734.3579090566,61574.3781073615,31775.1338594313,21626.5409593152,14565.7632533234,11177.5088971198,10724.0172860774,10967.9408416817,18569.2034232879,36887.5660437892,57310.7568575626,77621.534223401,68144.4543432738,55236.7595163722,42492.418929931,19132.3294235291,13904.0198002574,11902.1598212557,10726.6226280408,11486.5494740343,19225.233432005,36044.0274476375,62428.4247717315,82481.5519384868,77130.7473993927,60130.4243024259,42191.7831113319,28184.7204572217,13421.8013564029,11340.6819936091,11137.0728864933,11645.3647572059,18894.7343128607,40754.7647553882,70530.3682142441,81434.0600572676,76909.1731104515,64520.5150410287,45670.3528538512,21035.0880554878,15123.8436390503,11559.6653675889,10859.0697762617,11718.0362659658,19792.8013357394],"mode":"lines","name":"Fitted","type":"scatter","line":{"color":"red","dash":"dash"},"marker":{"color":"rgba(255,127,14,1)","line":{"color":"rgba(255,127,14,1)"}},"error_y":{"color":"rgba(255,127,14,1)"},"error_x":{"color":"rgba(255,127,14,1)"},"xaxis":"x","yaxis":"y2","frame":null},{"x":["1998-01-01","1998-02-01","1998-03-01","1998-04-01","1998-05-01","1998-06-01","1998-07-01","1998-08-01","1998-09-01","1998-10-01","1998-11-01","1998-12-01","1999-01-01","1999-02-01","1999-03-01","1999-04-01","1999-05-01","1999-06-01","1999-07-01","1999-08-01","1999-09-01","1999-10-01","1999-11-01","1999-12-01","2000-01-01","2000-02-01","2000-03-01","2000-04-01","2000-05-01","2000-06-01","2000-07-01","2000-08-01","2000-09-01","2000-10-01","2000-11-01","2000-12-01","2001-01-01","2001-02-01","2001-03-01","2001-04-01","2001-05-01","2001-06-01","2001-07-01","2001-08-01","2001-09-01","2001-10-01","2001-11-01","2001-12-01","2002-01-01","2002-02-01","2002-03-01","2002-04-01","2002-05-01","2002-06-01","2002-07-01","2002-08-01","2002-09-01","2002-10-01","2002-11-01","2002-12-01","2003-01-01","2003-02-01","2003-03-01","2003-04-01","2003-05-01","2003-06-01","2003-07-01","2003-08-01","2003-09-01","2003-10-01","2003-11-01","2003-12-01","2004-01-01","2004-02-01","2004-03-01","2004-04-01","2004-05-01","2004-06-01","2004-07-01","2004-08-01","2004-09-01","2004-10-01","2004-11-01","2004-12-01","2005-01-01","2005-02-01","2005-03-01","2005-04-01","2005-05-01","2005-06-01","2005-07-01","2005-08-01","2005-09-01","2005-10-01","2005-11-01","2005-12-01","2006-01-01","2006-02-01","2006-03-01","2006-04-01","2006-05-01","2006-06-01","2006-07-01","2006-08-01","2006-09-01","2006-10-01","2006-11-01","2006-12-01","2007-01-01","2007-02-01","2007-03-01","2007-04-01","2007-05-01","2007-06-01","2007-07-01","2007-08-01","2007-09-01","2007-10-01","2007-11-01","2007-12-01","2008-01-01","2008-02-01","2008-03-01","2008-04-01","2008-05-01","2008-06-01","2008-07-01","2008-08-01","2008-09-01","2008-10-01","2008-11-01","2008-12-01","2009-01-01","2009-02-01","2009-03-01","2009-04-01","2009-05-01","2009-06-01","2009-07-01","2009-08-01","2009-09-01","2009-10-01","2009-11-01","2009-12-01","2010-01-01","2010-02-01","2010-03-01","2010-04-01","2010-05-01","2010-06-01","2010-07-01","2010-08-01","2010-09-01","2010-10-01","2010-11-01","2010-12-01","2011-01-01","2011-02-01","2011-03-01","2011-04-01","2011-05-01","2011-06-01","2011-07-01","2011-08-01","2011-09-01","2011-10-01","2011-11-01","2011-12-01","2012-01-01","2012-02-01","2012-03-01","2012-04-01","2012-05-01","2012-06-01","2012-07-01","2012-08-01","2012-09-01","2012-10-01","2012-11-01","2012-12-01","2013-01-01","2013-02-01","2013-03-01","2013-04-01","2013-05-01","2013-06-01","2013-07-01","2013-08-01","2013-09-01","2013-10-01","2013-11-01","2013-12-01","2014-01-01","2014-02-01","2014-03-01","2014-04-01","2014-05-01","2014-06-01","2014-07-01","2014-08-01","2014-09-01","2014-10-01","2014-11-01","2014-12-01","2015-01-01","2015-02-01","2015-03-01","2015-04-01","2015-05-01","2015-06-01","2015-07-01","2015-08-01","2015-09-01","2015-10-01","2015-11-01","2015-12-01","2016-01-01","2016-02-01","2016-03-01","2016-04-01","2016-05-01","2016-06-01","2016-07-01","2016-08-01","2016-09-01","2016-10-01","2016-11-01","2016-12-01","2017-01-01","2017-02-01","2017-03-01","2017-04-01","2017-05-01","2017-06-01","2017-07-01","2017-08-01","2017-09-01","2017-10-01","2017-11-01","2017-12-01","2018-01-01","2018-02-01","2018-03-01","2018-04-01","2018-05-01","2018-06-01","2018-07-01","2018-08-01","2018-09-01","2018-10-01","2018-11-01","2018-12-01","2019-01-01","2019-02-01","2019-03-01","2019-04-01","2019-05-01","2019-06-01","2019-07-01","2019-08-01","2019-09-01","2019-10-01"],"y":[-9470.12150637581,-3478.0601891468,-408.19299813448,2384.16206976454,1114.79291433488,1474.22672015712,6856.02854190956,-1867.44291072559,1119.12346968659,-642.310588728178,-3152.66327381285,-9411.41663835671,6049.73179111299,-3367.63114522487,5438.92365770374,1139.80760966118,311.960829405489,4270.97812729829,-772.492409205675,768.248616248838,1545.93331737016,1630.759574706,-5436.07972770293,-3826.45048765457,1589.9233258586,5040.14400363978,-9039.96173713941,7426.41956363372,2687.21367646116,1404.15900909268,983.575249347163,1756.76019180132,1679.83917310742,1603.28602156817,-423.250149658947,7678.93992473732,-1457.07476618963,-4488.69191430834,5349.10329156872,2229.602441043,-1873.21367864843,2329.35903039948,181.182759110587,1131.91266989693,949.443119494059,33.3426874111465,-6569.01209530602,-9159.82391826721,-6527.74876108201,-5380.85050682347,-885.995487278524,3201.57413807858,4907.4420588096,363.049609983325,-118.506949612489,802.197359908405,244.802488763373,986.925651895335,2939.40827750909,3322.49867054735,-1335.50829527926,11520.1091110502,1027.52370499728,5065.8300714287,2559.15267874931,80.8964242301809,-493.307306160867,164.126623544818,542.260281269117,614.661711287852,-6569.70798341701,-2628.25874861165,2025.83032153266,5187.97956751204,-5406.4410941583,5936.91240912957,-6.07595276993379,-584.990822796704,177.275625014416,787.655290796392,203.674226317939,-980.843830975198,-4264.93932589715,-3454.19169605774,-141.017690543085,4833.90781572668,6329.67284808165,2109.19903522253,2998.21980979323,-648.360985275405,-373.295700457516,552.623695710572,-367.133624697713,-2141.32156851905,-5700.37931762322,2259.85614714275,-10619.6511162754,620.768818894358,90.867158161549,-1882.09178627026,-548.387172278788,472.602082400481,-135.529195016665,-408.696671727987,274.477050269885,2104.50999656645,-4646.43301663856,-10982.9541567161,-4958.75296485802,13842.0842800376,-222.179814985655,4702.73356421658,-2148.38954138616,-809.986771697777,24.2726685276393,1393.45494870975,-901.189444638938,-4414.29762324286,2603.44363892304,5737.32649052527,-7217.98275693881,521.310380258496,297.507673007589,-2044.34277811506,679.402133393312,69.2018926574056,-546.916818083309,19.4609599438627,412.44522167775,1831.95291440983,-171.630046254068,1207.8694010793,5781.44216072593,-3820.42407811845,-1447.51590044615,2021.22658355519,-2464.34699929552,400.134371610913,-208.710141937247,565.105566315466,11.6868596924487,2503.2815206249,-6710.07566430512,3270.18847820346,-1393.08805913445,-1515.2349574507,-9876.09275427771,-4266.44224940587,1793.20295745095,-646.193301228484,-495.227418554763,-631.676989336462,275.260106873793,-489.064653187081,1796.69140333815,12358.5102913758,-649.956096147973,-3788.85508330725,-769.350245781214,-363.13799997489,-2773.76308659304,211.376984803941,-511.954462284832,780.46977596228,-1076.75785647315,1656.95245082414,-4671.26830637689,-5141.25382555542,-4730.0346991056,-5864.42419168155,-16244.6474149082,451.547241964843,-337.008435786785,399.356032902733,-357.996176739774,-512.346337811634,-141.259574955957,-333.408415545702,7491.72596612781,-5250.38952159529,-1495.59220980376,1327.04503186379,3681.61400671113,-3405.09230064756,-1405.69931576477,-458.590945098373,-330.283045703349,-315.993370891581,710.230331088518,-2201.19497116993,7697.10066599735,7178.8992186655,2067.44325402392,3666.39821008393,7042.44194116937,-4445.54797689378,3984.05297413949,-3803.55019034918,92.5440478217333,-624.576100093276,71.8013354990926,-2459.86079028583,8238.35817004935,-949.108460909469,12806.9457476011,14019.1576091716,1216.80013289631,-9386.67088184871,-3958.87695446118,688.760779941867,-899.643188398737,-168.500741379372,-1195.74514145619,2334.60241625349,-5422.93096813667,-12942.6913250143,6583.35854003376,-5048.35790905665,-14037.3781073615,5134.86614056869,470.459040684771,-1766.7632533234,-402.508897119775,-1457.01728607741,-1587.94084168168,-268.203423287898,1103.43395621076,8833.24314243742,-4650.53422340096,-7781.45434327381,12836.2404836278,-11582.418929931,1486.6705764709,-46.0198002573634,-1170.15982125571,-509.622628040805,-530.549474034269,-3768.23343200502,6626.97255236252,13308.5752282685,9213.44806151319,-12222.7473993927,8491.57569757415,6452.2168886681,-9000.72045722174,-898.801356402924,-278.681993609121,-1225.07288649328,-927.364757205884,4412.26568713932,15241.2352446118,-1409.36821424405,8528.93994273237,-3822.17311045153,6535.48495897129,-10880.3528538512,1523.91194451225,-2500.84363905033,-1219.66536758891,-1001.06977626175,-1313.03626596577,-2013.8013357394],"mode":"lines","line":{"color":"green"},"name":"Residuals","type":"scatter","marker":{"color":"rgba(44,160,44,1)","line":{"color":"rgba(44,160,44,1)"}},"error_y":{"color":"rgba(44,160,44,1)"},"error_x":{"color":"rgba(44,160,44,1)"},"xaxis":"x","yaxis":"y","frame":null},{"x":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"y":[1,-0.0136371209982239,0.00728105030484448,0.0912964846086672,0.0313154469863941,-0.158427150691089,-0.029932380900276,-0.0143200504997841,-0.0141955233946146,-0.0986745579522864,0.095108984825445,0.0669506295971952,-0.0122410260669919,0.00800921187244139,0.0411883071656831,-0.120667018196352,-0.0277151565431068,-0.0440534892588531,-0.0409064084772685,-0.0673018537699627,0.00966706909074065,-0.12094932654865,0.00438730145507181,0.110924719462371,0.0140317971895456,-0.100359497856121,0.114481653730297,-0.0272145186955485,-0.05013388841153,-0.00122999078191554,0.0161197738990808,-0.0472256573422462,-0.131749012501435,-0.0260210582520076,0.0902422498689558,-0.148717159567502,0.0120740882813308],"type":"bar","width":[0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01],"showlegend":false,"marker":{"color":"#00526d","line":{"color":"#00526d"}},"name":"Autocorrelation","error_y":{"color":"rgba(214,39,40,1)"},"error_x":{"color":"rgba(214,39,40,1)"},"xaxis":"x2","yaxis":"y4","frame":null},{"x":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"y":[0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636],"type":"scatter","mode":"lines","line":{"color":"red","dash":"dash","width":1},"showlegend":false,"name":"CI Upper","marker":{"color":"rgba(148,103,189,1)","line":{"color":"rgba(148,103,189,1)"}},"error_y":{"color":"rgba(148,103,189,1)"},"error_x":{"color":"rgba(148,103,189,1)"},"xaxis":"x2","yaxis":"y4","frame":null},{"x":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"y":[-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636],"type":"scatter","mode":"lines","line":{"color":"red","dash":"dash","width":1},"showlegend":false,"name":"CI Lower","marker":{"color":"rgba(140,86,75,1)","line":{"color":"rgba(140,86,75,1)"}},"error_y":{"color":"rgba(140,86,75,1)"},"error_x":{"color":"rgba(140,86,75,1)"},"xaxis":"x2","yaxis":"y4","frame":null},{"x":[-9470.12150637581,-3478.0601891468,-408.19299813448,2384.16206976454,1114.79291433488,1474.22672015712,6856.02854190956,-1867.44291072559,1119.12346968659,-642.310588728178,-3152.66327381285,-9411.41663835671,6049.73179111299,-3367.63114522487,5438.92365770374,1139.80760966118,311.960829405489,4270.97812729829,-772.492409205675,768.248616248838,1545.93331737016,1630.759574706,-5436.07972770293,-3826.45048765457,1589.9233258586,5040.14400363978,-9039.96173713941,7426.41956363372,2687.21367646116,1404.15900909268,983.575249347163,1756.76019180132,1679.83917310742,1603.28602156817,-423.250149658947,7678.93992473732,-1457.07476618963,-4488.69191430834,5349.10329156872,2229.602441043,-1873.21367864843,2329.35903039948,181.182759110587,1131.91266989693,949.443119494059,33.3426874111465,-6569.01209530602,-9159.82391826721,-6527.74876108201,-5380.85050682347,-885.995487278524,3201.57413807858,4907.4420588096,363.049609983325,-118.506949612489,802.197359908405,244.802488763373,986.925651895335,2939.40827750909,3322.49867054735,-1335.50829527926,11520.1091110502,1027.52370499728,5065.8300714287,2559.15267874931,80.8964242301809,-493.307306160867,164.126623544818,542.260281269117,614.661711287852,-6569.70798341701,-2628.25874861165,2025.83032153266,5187.97956751204,-5406.4410941583,5936.91240912957,-6.07595276993379,-584.990822796704,177.275625014416,787.655290796392,203.674226317939,-980.843830975198,-4264.93932589715,-3454.19169605774,-141.017690543085,4833.90781572668,6329.67284808165,2109.19903522253,2998.21980979323,-648.360985275405,-373.295700457516,552.623695710572,-367.133624697713,-2141.32156851905,-5700.37931762322,2259.85614714275,-10619.6511162754,620.768818894358,90.867158161549,-1882.09178627026,-548.387172278788,472.602082400481,-135.529195016665,-408.696671727987,274.477050269885,2104.50999656645,-4646.43301663856,-10982.9541567161,-4958.75296485802,13842.0842800376,-222.179814985655,4702.73356421658,-2148.38954138616,-809.986771697777,24.2726685276393,1393.45494870975,-901.189444638938,-4414.29762324286,2603.44363892304,5737.32649052527,-7217.98275693881,521.310380258496,297.507673007589,-2044.34277811506,679.402133393312,69.2018926574056,-546.916818083309,19.4609599438627,412.44522167775,1831.95291440983,-171.630046254068,1207.8694010793,5781.44216072593,-3820.42407811845,-1447.51590044615,2021.22658355519,-2464.34699929552,400.134371610913,-208.710141937247,565.105566315466,11.6868596924487,2503.2815206249,-6710.07566430512,3270.18847820346,-1393.08805913445,-1515.2349574507,-9876.09275427771,-4266.44224940587,1793.20295745095,-646.193301228484,-495.227418554763,-631.676989336462,275.260106873793,-489.064653187081,1796.69140333815,12358.5102913758,-649.956096147973,-3788.85508330725,-769.350245781214,-363.13799997489,-2773.76308659304,211.376984803941,-511.954462284832,780.46977596228,-1076.75785647315,1656.95245082414,-4671.26830637689,-5141.25382555542,-4730.0346991056,-5864.42419168155,-16244.6474149082,451.547241964843,-337.008435786785,399.356032902733,-357.996176739774,-512.346337811634,-141.259574955957,-333.408415545702,7491.72596612781,-5250.38952159529,-1495.59220980376,1327.04503186379,3681.61400671113,-3405.09230064756,-1405.69931576477,-458.590945098373,-330.283045703349,-315.993370891581,710.230331088518,-2201.19497116993,7697.10066599735,7178.8992186655,2067.44325402392,3666.39821008393,7042.44194116937,-4445.54797689378,3984.05297413949,-3803.55019034918,92.5440478217333,-624.576100093276,71.8013354990926,-2459.86079028583,8238.35817004935,-949.108460909469,12806.9457476011,14019.1576091716,1216.80013289631,-9386.67088184871,-3958.87695446118,688.760779941867,-899.643188398737,-168.500741379372,-1195.74514145619,2334.60241625349,-5422.93096813667,-12942.6913250143,6583.35854003376,-5048.35790905665,-14037.3781073615,5134.86614056869,470.459040684771,-1766.7632533234,-402.508897119775,-1457.01728607741,-1587.94084168168,-268.203423287898,1103.43395621076,8833.24314243742,-4650.53422340096,-7781.45434327381,12836.2404836278,-11582.418929931,1486.6705764709,-46.0198002573634,-1170.15982125571,-509.622628040805,-530.549474034269,-3768.23343200502,6626.97255236252,13308.5752282685,9213.44806151319,-12222.7473993927,8491.57569757415,6452.2168886681,-9000.72045722174,-898.801356402924,-278.681993609121,-1225.07288649328,-927.364757205884,4412.26568713932,15241.2352446118,-1409.36821424405,8528.93994273237,-3822.17311045153,6535.48495897129,-10880.3528538512,1523.91194451225,-2500.84363905033,-1219.66536758891,-1001.06977626175,-1313.03626596577,-2013.8013357394],"marker":{"color":"rgb(227, 119, 194)","line":{"color":"rgba(227,119,194,1)"}},"name":"Residauls Dist.","type":"histogram","error_y":{"color":"rgba(227,119,194,1)"},"error_x":{"color":"rgba(227,119,194,1)"},"xaxis":"x3","yaxis":"y3","frame":null}],"layout":{"xaxis":{"domain":[0,1],"automargin":true,"title":"Index","anchor":"y","range":["1997-01-01","2019-10-01"]},"xaxis2":{"domain":[0,0.46],"automargin":true,"title":"Lag","anchor":"y4"},"xaxis3":{"domain":[0.54,1],"automargin":true,"title":"Residuals Distribution","anchor":"y3"},"yaxis3":{"domain":[0,0.36],"automargin":true,"title":"Count","anchor":"x3"},"yaxis4":{"domain":[0,0.36],"automargin":true,"title":"ACF","anchor":"x2"},"yaxis":{"domain":[0.44,0.7088],"automargin":true,"title":"Residuals","anchor":"x"},"yaxis2":{"domain":[0.7312,1],"automargin":true,"title":"Fitted vs. Actuals","anchor":"x"},"annotations":[],"shapes":[],"images":[],"margin":{"b":40,"l":60,"t":25,"r":10},"hovermode":"closest","showlegend":false,"title":"Residuals Analysis"},"attrs":{"ab3f6841636":{"x":{},"y":{},"mode":"lines","name":"Actual","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"scatter"},"ab3f6841636.1":{"x":{},"y":{},"mode":"lines","name":"Fitted","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"scatter","line":{"dash":"dash","color":"red"},"inherit":true},"ab3f49ce3691":{"x":{},"y":{},"mode":"lines","line":{"color":"green"},"name":"Residuals","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"scatter"},"ab3f1608f72":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":{},"y":{},"type":"bar","width":0.01,"showlegend":false,"marker":{"color":"#00526d","line":{"color":"#00526d"}},"name":"Autocorrelation","inherit":true},"ab3f1608f72.1":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":{},"y":{},"type":"scatter","mode":"lines","line":{"dash":"dash","color":"red","width":1},"showlegend":false,"name":"CI Upper","inherit":true},"ab3f1608f72.2":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":{},"y":{},"type":"scatter","mode":"lines","line":{"dash":"dash","color":"red","width":1},"showlegend":false,"name":"CI Lower","inherit":true},"ab3f6a698612":{"x":[-9470.12150637581,-3478.0601891468,-408.19299813448,2384.16206976454,1114.79291433488,1474.22672015712,6856.02854190956,-1867.44291072559,1119.12346968659,-642.310588728178,-3152.66327381285,-9411.41663835671,6049.73179111299,-3367.63114522487,5438.92365770374,1139.80760966118,311.960829405489,4270.97812729829,-772.492409205675,768.248616248838,1545.93331737016,1630.759574706,-5436.07972770293,-3826.45048765457,1589.9233258586,5040.14400363978,-9039.96173713941,7426.41956363372,2687.21367646116,1404.15900909268,983.575249347163,1756.76019180132,1679.83917310742,1603.28602156817,-423.250149658947,7678.93992473732,-1457.07476618963,-4488.69191430834,5349.10329156872,2229.602441043,-1873.21367864843,2329.35903039948,181.182759110587,1131.91266989693,949.443119494059,33.3426874111465,-6569.01209530602,-9159.82391826721,-6527.74876108201,-5380.85050682347,-885.995487278524,3201.57413807858,4907.4420588096,363.049609983325,-118.506949612489,802.197359908405,244.802488763373,986.925651895335,2939.40827750909,3322.49867054735,-1335.50829527926,11520.1091110502,1027.52370499728,5065.8300714287,2559.15267874931,80.8964242301809,-493.307306160867,164.126623544818,542.260281269117,614.661711287852,-6569.70798341701,-2628.25874861165,2025.83032153266,5187.97956751204,-5406.4410941583,5936.91240912957,-6.07595276993379,-584.990822796704,177.275625014416,787.655290796392,203.674226317939,-980.843830975198,-4264.93932589715,-3454.19169605774,-141.017690543085,4833.90781572668,6329.67284808165,2109.19903522253,2998.21980979323,-648.360985275405,-373.295700457516,552.623695710572,-367.133624697713,-2141.32156851905,-5700.37931762322,2259.85614714275,-10619.6511162754,620.768818894358,90.867158161549,-1882.09178627026,-548.387172278788,472.602082400481,-135.529195016665,-408.696671727987,274.477050269885,2104.50999656645,-4646.43301663856,-10982.9541567161,-4958.75296485802,13842.0842800376,-222.179814985655,4702.73356421658,-2148.38954138616,-809.986771697777,24.2726685276393,1393.45494870975,-901.189444638938,-4414.29762324286,2603.44363892304,5737.32649052527,-7217.98275693881,521.310380258496,297.507673007589,-2044.34277811506,679.402133393312,69.2018926574056,-546.916818083309,19.4609599438627,412.44522167775,1831.95291440983,-171.630046254068,1207.8694010793,5781.44216072593,-3820.42407811845,-1447.51590044615,2021.22658355519,-2464.34699929552,400.134371610913,-208.710141937247,565.105566315466,11.6868596924487,2503.2815206249,-6710.07566430512,3270.18847820346,-1393.08805913445,-1515.2349574507,-9876.09275427771,-4266.44224940587,1793.20295745095,-646.193301228484,-495.227418554763,-631.676989336462,275.260106873793,-489.064653187081,1796.69140333815,12358.5102913758,-649.956096147973,-3788.85508330725,-769.350245781214,-363.13799997489,-2773.76308659304,211.376984803941,-511.954462284832,780.46977596228,-1076.75785647315,1656.95245082414,-4671.26830637689,-5141.25382555542,-4730.0346991056,-5864.42419168155,-16244.6474149082,451.547241964843,-337.008435786785,399.356032902733,-357.996176739774,-512.346337811634,-141.259574955957,-333.408415545702,7491.72596612781,-5250.38952159529,-1495.59220980376,1327.04503186379,3681.61400671113,-3405.09230064756,-1405.69931576477,-458.590945098373,-330.283045703349,-315.993370891581,710.230331088518,-2201.19497116993,7697.10066599735,7178.8992186655,2067.44325402392,3666.39821008393,7042.44194116937,-4445.54797689378,3984.05297413949,-3803.55019034918,92.5440478217333,-624.576100093276,71.8013354990926,-2459.86079028583,8238.35817004935,-949.108460909469,12806.9457476011,14019.1576091716,1216.80013289631,-9386.67088184871,-3958.87695446118,688.760779941867,-899.643188398737,-168.500741379372,-1195.74514145619,2334.60241625349,-5422.93096813667,-12942.6913250143,6583.35854003376,-5048.35790905665,-14037.3781073615,5134.86614056869,470.459040684771,-1766.7632533234,-402.508897119775,-1457.01728607741,-1587.94084168168,-268.203423287898,1103.43395621076,8833.24314243742,-4650.53422340096,-7781.45434327381,12836.2404836278,-11582.418929931,1486.6705764709,-46.0198002573634,-1170.15982125571,-509.622628040805,-530.549474034269,-3768.23343200502,6626.97255236252,13308.5752282685,9213.44806151319,-12222.7473993927,8491.57569757415,6452.2168886681,-9000.72045722174,-898.801356402924,-278.681993609121,-1225.07288649328,-927.364757205884,4412.26568713932,15241.2352446118,-1409.36821424405,8528.93994273237,-3822.17311045153,6535.48495897129,-10880.3528538512,1523.91194451225,-2500.84363905033,-1219.66536758891,-1001.06977626175,-1313.03626596577,-2013.8013357394],"marker":{"color":"rgb(227, 119, 194)"},"name":"Residauls Dist.","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"histogram"}},"source":"A","config":{"showSendToCloud":false},"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.2,"selected":{"opacity":1},"debounce":0},"subplot":true,".hideLegend":true,"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}
Note: When forecasting the feature values of the series with the forecastLM function (see example below), for lag n the function will automatically map the last n observations for the corresponding first n observations. If the forecast horizon is greater than n observations, it will utilize the corresponding predicted values from observation n+1 and moving forward.
Variables selection with stepwise regression
The step
argument enables you to apply a stepwise regression method for variable selection based on the AIC (Akaike Information Criterion). For example, let’s add some noise by adding the 6th lag, in addition to the 1st and 12th lags:
md3 <- trainLM(input = ny_gas,
y = "y",
trend = list(linear = TRUE),
seasonal = "month",
lags = c(1, 6, 12),
step = TRUE)
## Start: AIC=4467.39
## y ~ month + linear_trend + lag_1 + lag_6 + lag_12
##
## Df Sum of Sq RSS AIC
## - lag_6 1 25831874 5920397742 4466.53
## 5894565868 4467.39
## - lag_12 1 91670535 5986236404 4469.43
## - linear_trend 1 166735011 6061300879 4472.69
## - lag_1 1 2023866568 7918432436 4542.72
## - month 11 5233830014 11128395882 4611.88
##
## Step: AIC=4466.53
## y ~ month + linear_trend + lag_1 + lag_12
##
## Df Sum of Sq RSS AIC
## 5920397742 4466.53
## - lag_12 1 105325824 6025723567 4469.15
## - linear_trend 1 140951656 6061349399 4470.70
## - lag_1 1 2137859906 8058257649 4545.30
## - month 11 5687037904 11607435647 4620.92
summary(md3$model)
##
## Call:
## stats::lm(formula = y ~ month + linear_trend + lag_1 + lag_12,
## data = df1)
##
## Residuals:
## Min 1Q Median 3Q Max
## -16244.65 -1722.06 -127.02 1737.53 15241.24
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 32265.964782 4365.570790 7.3910 0.00000000000224972 ***
## monthFeb -12055.401516 1722.177908 -7.0001 0.00000000002402279 ***
## monthMar -16236.106785 1758.014778 -9.2355 < 0.00000000000000022 ***
## monthApr -31687.887252 2407.133951 -13.1642 < 0.00000000000000022 ***
## monthMay -34236.087062 3128.014939 -10.9450 < 0.00000000000000022 ***
## monthJun -33093.376259 3698.769808 -8.9471 < 0.00000000000000022 ***
## monthJul -31397.220717 3977.363059 -7.8940 0.00000000000009549 ***
## monthAug -30800.918841 4071.729734 -7.5646 0.00000000000076668 ***
## monthSep -29800.859834 4068.696270 -7.3244 0.00000000000338633 ***
## monthOct -23509.033810 3764.733548 -6.2445 0.00000000184222790 ***
## monthNov -11343.231562 2975.266737 -3.8125 0.0001738 ***
## monthDec -2268.087593 1939.589740 -1.1694 0.2433840
## linear_trend 10.714705 4.418472 2.4250 0.0160272 *
## lag_1 0.513078 0.054328 9.4441 < 0.00000000000000022 ***
## lag_12 0.118482 0.056521 2.0962 0.0370788 *
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 4895.8 on 247 degrees of freedom
## Multiple R-squared: 0.95857, Adjusted R-squared: 0.95622
## F-statistic: 408.16 on 14 and 247 DF, p-value: < 0.000000000000000222
As expected, the stepwise regression dropped the 6th lag variable.
Handling special events and outliers
The events
argument allows you to handle special events (e.g., non-seasonal) and outliers. This argument takes a list of input (or inputs), each represents a set of date or time that corresponding to the series index. It than transform those inputs to flag variables with the use of a hot-encoding method.
For instance, you can observe from the series plot above that the peaks during the years 2015, 2018, and 2019 were higher than the usual. Potentially, This could be related to unusual weather patterns such as colder temperatures than the average. You can observe on the above-trained models’ residuals plots that the residuals during those peaks were significantly higher due to a bad fit of the model. Let’s flag those events with the events
argument:
events1 <- list(outlier = c(as.Date("2015-01-01"), as.Date("2015-02-01"), as.Date("2018-01-01"), as.Date("2019-01-01")))
md4 <- trainLM(input = ny_gas,
y = "y",
trend = list(linear = TRUE),
seasonal = "month",
lags = c(1, 12),
events = events1,
step = TRUE)
## Start: AIC=4438.35
## y ~ outlier + month + linear_trend + lag_1 + lag_12
##
## Df Sum of Sq RSS AIC
## - lag_12 1 30530567 5306830893 4437.87
## 5276300326 4438.35
## - linear_trend 1 127518855 5403819181 4442.61
## - outlier 1 644097417 5920397742 4466.53
## - lag_1 1 1513563678 6789864004 4502.43
## - month 11 5817216417 11093516743 4611.06
##
## Step: AIC=4437.87
## y ~ outlier + month + linear_trend + lag_1
##
## Df Sum of Sq RSS AIC
## 5306830893 4437.87
## - linear_trend 1 166154848 5472985741 4443.94
## - outlier 1 718892674 6025723567 4469.15
## - lag_1 1 1614763442 6921594336 4505.47
## - month 11 37114665006 42421495899 4960.48
summary(md4$model)
##
## Call:
## stats::lm(formula = y ~ outlier + month + linear_trend + lag_1,
## data = df1)
##
## Residuals:
## Min 1Q Median 3Q Max
## -16819.93 -1493.53 -18.83 1690.59 16469.41
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 41674.663767 2884.524303 14.4477 < 0.00000000000000022 ***
## outlier 15018.386255 2596.332971 5.7845 0.0000000219178283339 ***
## monthFeb -10354.582199 1643.264690 -6.3012 0.0000000013456455566 ***
## monthMar -15074.741500 1559.504225 -9.6664 < 0.00000000000000022 ***
## monthApr -33447.774825 1452.659748 -23.0252 < 0.00000000000000022 ***
## monthMay -39146.223276 1722.408636 -22.7276 < 0.00000000000000022 ***
## monthJun -39847.357090 2276.907447 -17.5006 < 0.00000000000000022 ***
## monthJul -38933.664027 2605.992821 -14.9401 < 0.00000000000000022 ***
## monthAug -38583.581362 2721.780637 -14.1759 < 0.00000000000000022 ***
## monthSep -37559.002207 2759.521582 -13.6107 < 0.00000000000000022 ***
## monthOct -30334.701374 2731.190821 -11.1068 < 0.00000000000000022 ***
## monthNov -15705.106848 2409.019610 -6.5193 0.0000000003948420140 ***
## monthDec -3101.475052 1754.057367 -1.7682 0.078267 .
## linear_trend 11.330305 4.074312 2.7809 0.005838 **
## lag_1 0.453819 0.052348 8.6693 0.0000000000000005852 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 4635.2 on 247 degrees of freedom
## Multiple R-squared: 0.96286, Adjusted R-squared: 0.96075
## F-statistic: 457.39 on 14 and 247 DF, p-value: < 0.000000000000000222
The outlier
variable created and added to the regression by the function. You can notice in the residuals plot below the effect of the variable on the fit of the model:
plot_res(md4)
{"x":{"data":[{"x":["1997-01-01","1997-02-01","1997-03-01","1997-04-01","1997-05-01","1997-06-01","1997-07-01","1997-08-01","1997-09-01","1997-10-01","1997-11-01","1997-12-01","1998-01-01","1998-02-01","1998-03-01","1998-04-01","1998-05-01","1998-06-01","1998-07-01","1998-08-01","1998-09-01","1998-10-01","1998-11-01","1998-12-01","1999-01-01","1999-02-01","1999-03-01","1999-04-01","1999-05-01","1999-06-01","1999-07-01","1999-08-01","1999-09-01","1999-10-01","1999-11-01","1999-12-01","2000-01-01","2000-02-01","2000-03-01","2000-04-01","2000-05-01","2000-06-01","2000-07-01","2000-08-01","2000-09-01","2000-10-01","2000-11-01","2000-12-01","2001-01-01","2001-02-01","2001-03-01","2001-04-01","2001-05-01","2001-06-01","2001-07-01","2001-08-01","2001-09-01","2001-10-01","2001-11-01","2001-12-01","2002-01-01","2002-02-01","2002-03-01","2002-04-01","2002-05-01","2002-06-01","2002-07-01","2002-08-01","2002-09-01","2002-10-01","2002-11-01","2002-12-01","2003-01-01","2003-02-01","2003-03-01","2003-04-01","2003-05-01","2003-06-01","2003-07-01","2003-08-01","2003-09-01","2003-10-01","2003-11-01","2003-12-01","2004-01-01","2004-02-01","2004-03-01","2004-04-01","2004-05-01","2004-06-01","2004-07-01","2004-08-01","2004-09-01","2004-10-01","2004-11-01","2004-12-01","2005-01-01","2005-02-01","2005-03-01","2005-04-01","2005-05-01","2005-06-01","2005-07-01","2005-08-01","2005-09-01","2005-10-01","2005-11-01","2005-12-01","2006-01-01","2006-02-01","2006-03-01","2006-04-01","2006-05-01","2006-06-01","2006-07-01","2006-08-01","2006-09-01","2006-10-01","2006-11-01","2006-12-01","2007-01-01","2007-02-01","2007-03-01","2007-04-01","2007-05-01","2007-06-01","2007-07-01","2007-08-01","2007-09-01","2007-10-01","2007-11-01","2007-12-01","2008-01-01","2008-02-01","2008-03-01","2008-04-01","2008-05-01","2008-06-01","2008-07-01","2008-08-01","2008-09-01","2008-10-01","2008-11-01","2008-12-01","2009-01-01","2009-02-01","2009-03-01","2009-04-01","2009-05-01","2009-06-01","2009-07-01","2009-08-01","2009-09-01","2009-10-01","2009-11-01","2009-12-01","2010-01-01","2010-02-01","2010-03-01","2010-04-01","2010-05-01","2010-06-01","2010-07-01","2010-08-01","2010-09-01","2010-10-01","2010-11-01","2010-12-01","2011-01-01","2011-02-01","2011-03-01","2011-04-01","2011-05-01","2011-06-01","2011-07-01","2011-08-01","2011-09-01","2011-10-01","2011-11-01","2011-12-01","2012-01-01","2012-02-01","2012-03-01","2012-04-01","2012-05-01","2012-06-01","2012-07-01","2012-08-01","2012-09-01","2012-10-01","2012-11-01","2012-12-01","2013-01-01","2013-02-01","2013-03-01","2013-04-01","2013-05-01","2013-06-01","2013-07-01","2013-08-01","2013-09-01","2013-10-01","2013-11-01","2013-12-01","2014-01-01","2014-02-01","2014-03-01","2014-04-01","2014-05-01","2014-06-01","2014-07-01","2014-08-01","2014-09-01","2014-10-01","2014-11-01","2014-12-01","2015-01-01","2015-02-01","2015-03-01","2015-04-01","2015-05-01","2015-06-01","2015-07-01","2015-08-01","2015-09-01","2015-10-01","2015-11-01","2015-12-01","2016-01-01","2016-02-01","2016-03-01","2016-04-01","2016-05-01","2016-06-01","2016-07-01","2016-08-01","2016-09-01","2016-10-01","2016-11-01","2016-12-01","2017-01-01","2017-02-01","2017-03-01","2017-04-01","2017-05-01","2017-06-01","2017-07-01","2017-08-01","2017-09-01","2017-10-01","2017-11-01","2017-12-01","2018-01-01","2018-02-01","2018-03-01","2018-04-01","2018-05-01","2018-06-01","2018-07-01","2018-08-01","2018-09-01","2018-10-01","2018-11-01","2018-12-01","2019-01-01","2019-02-01","2019-03-01","2019-04-01","2019-05-01","2019-06-01","2019-07-01","2019-08-01","2019-09-01","2019-10-01"],"y":[62019,56003,51213,37597,24082,14469,9719,10267,9878,17385,34936,48074,54949,51711,48382,32412,18810,12205,15342,8900,9546,15308,30010,41937,66611,57425,56954,35080,18880,14898,9890,8705,9962,17677,28487,46142,65819,66232,48138,37288,22525,14349,10847,10290,11087,18636,33940,61072,70467,60260,58547,37822,18799,13426,9813,9451,10188,16847,27651,42904,56754,51753,49309,34246,23432,13856,9740,9113,9332,17278,36764,58038,68215,73655,61494,42067,25774,14955,10049,8722,9456,17149,28397,49716,68793,70343,54933,40627,22876,13061,9913,9358,9587,15734,29113,48400,66148,68368,65007,41926,26332,14675,10303,9527,9247,14360,27186,53098,57895,59815,55702,33443,18971,12339,9517,8311,9353,18626,30329,42153,57091,71739,60533,41630,20828,11861,9467,10072,9222,12674,35026,60115,64081,63546,57550,34451,20321,12552,9373,8987,10092,18790,36074,58380,77147,65066,56360,37184,18648,12235,9666,9683,10280,20411,30620,57567,71232,64645,47703,26907,17563,10723,8767,8236,9952,17571,37152,70039,77802,65821,56516,34243,16760,11118,8975,9712,9447,19250,32448,51732,65236,57566,37978,26544,15280,10722,9079,8776,9971,17856,43467,55236,68908,65792,60057,33232,17596,11134,9459,9185,11223,16594,44459,68718,79952,74901,70836,38643,26165,12363,10686,9683,11117,16260,45075,62632,89006,91107,74731,36470,18251,13069,10330,10144,10202,20674,33880,44302,74579,66686,47537,36910,22097,12799,10775,9267,9380,18301,37991,66144,72971,60363,68073,30910,20619,13858,10732,10217,10956,15457,42671,75737,91695,64908,68622,48644,19184,12523,11062,9912,10718,23307,55996,69121,89963,73087,71056,34790,22559,12623,10340,9858,10405,17779],"mode":"lines","name":"Actual","type":"scatter","marker":{"color":"rgba(31,119,180,1)","line":{"color":"rgba(31,119,180,1)"}},"error_y":{"color":"rgba(31,119,180,1)"},"error_x":{"color":"rgba(31,119,180,1)"},"line":{"color":"rgba(31,119,180,1)"},"xaxis":"x","yaxis":"y2","frame":null},{"x":["1998-01-01","1998-02-01","1998-03-01","1998-04-01","1998-05-01","1998-06-01","1998-07-01","1998-08-01","1998-09-01","1998-10-01","1998-11-01","1998-12-01","1999-01-01","1999-02-01","1999-03-01","1999-04-01","1999-05-01","1999-06-01","1999-07-01","1999-08-01","1999-09-01","1999-10-01","1999-11-01","1999-12-01","2000-01-01","2000-02-01","2000-03-01","2000-04-01","2000-05-01","2000-06-01","2000-07-01","2000-08-01","2000-09-01","2000-10-01","2000-11-01","2000-12-01","2001-01-01","2001-02-01","2001-03-01","2001-04-01","2001-05-01","2001-06-01","2001-07-01","2001-08-01","2001-09-01","2001-10-01","2001-11-01","2001-12-01","2002-01-01","2002-02-01","2002-03-01","2002-04-01","2002-05-01","2002-06-01","2002-07-01","2002-08-01","2002-09-01","2002-10-01","2002-11-01","2002-12-01","2003-01-01","2003-02-01","2003-03-01","2003-04-01","2003-05-01","2003-06-01","2003-07-01","2003-08-01","2003-09-01","2003-10-01","2003-11-01","2003-12-01","2004-01-01","2004-02-01","2004-03-01","2004-04-01","2004-05-01","2004-06-01","2004-07-01","2004-08-01","2004-09-01","2004-10-01","2004-11-01","2004-12-01","2005-01-01","2005-02-01","2005-03-01","2005-04-01","2005-05-01","2005-06-01","2005-07-01","2005-08-01","2005-09-01","2005-10-01","2005-11-01","2005-12-01","2006-01-01","2006-02-01","2006-03-01","2006-04-01","2006-05-01","2006-06-01","2006-07-01","2006-08-01","2006-09-01","2006-10-01","2006-11-01","2006-12-01","2007-01-01","2007-02-01","2007-03-01","2007-04-01","2007-05-01","2007-06-01","2007-07-01","2007-08-01","2007-09-01","2007-10-01","2007-11-01","2007-12-01","2008-01-01","2008-02-01","2008-03-01","2008-04-01","2008-05-01","2008-06-01","2008-07-01","2008-08-01","2008-09-01","2008-10-01","2008-11-01","2008-12-01","2009-01-01","2009-02-01","2009-03-01","2009-04-01","2009-05-01","2009-06-01","2009-07-01","2009-08-01","2009-09-01","2009-10-01","2009-11-01","2009-12-01","2010-01-01","2010-02-01","2010-03-01","2010-04-01","2010-05-01","2010-06-01","2010-07-01","2010-08-01","2010-09-01","2010-10-01","2010-11-01","2010-12-01","2011-01-01","2011-02-01","2011-03-01","2011-04-01","2011-05-01","2011-06-01","2011-07-01","2011-08-01","2011-09-01","2011-10-01","2011-11-01","2011-12-01","2012-01-01","2012-02-01","2012-03-01","2012-04-01","2012-05-01","2012-06-01","2012-07-01","2012-08-01","2012-09-01","2012-10-01","2012-11-01","2012-12-01","2013-01-01","2013-02-01","2013-03-01","2013-04-01","2013-05-01","2013-06-01","2013-07-01","2013-08-01","2013-09-01","2013-10-01","2013-11-01","2013-12-01","2014-01-01","2014-02-01","2014-03-01","2014-04-01","2014-05-01","2014-06-01","2014-07-01","2014-08-01","2014-09-01","2014-10-01","2014-11-01","2014-12-01","2015-01-01","2015-02-01","2015-03-01","2015-04-01","2015-05-01","2015-06-01","2015-07-01","2015-08-01","2015-09-01","2015-10-01","2015-11-01","2015-12-01","2016-01-01","2016-02-01","2016-03-01","2016-04-01","2016-05-01","2016-06-01","2016-07-01","2016-08-01","2016-09-01","2016-10-01","2016-11-01","2016-12-01","2017-01-01","2017-02-01","2017-03-01","2017-04-01","2017-05-01","2017-06-01","2017-07-01","2017-08-01","2017-09-01","2017-10-01","2017-11-01","2017-12-01","2018-01-01","2018-02-01","2018-03-01","2018-04-01","2018-05-01","2018-06-01","2018-07-01","2018-08-01","2018-09-01","2018-10-01","2018-11-01","2018-12-01","2019-01-01","2019-02-01","2019-03-01","2019-04-01","2019-05-01","2019-06-01","2019-07-01","2019-08-01","2019-09-01","2019-10-01"],"y":[63638.8657670849,56415.6214183259,50237.3255963077,30364.858196337,17430.2461621226,10567.592817469,8495.13984729691,10280.1838960405,8392.58956002415,15921.387953195,33177.2194710962,52464.232615061,60989.7405160791,61844.0255179567,52966.4126232047,34390.9607232127,18776.9996645498,10735.3238325119,9853.23883170436,7941.92485129266,8440.05846607673,16246.1404388441,34388.28100904,51909.0295183243,63034.0142506501,61620.5643143216,57099.1626806945,30526.0536232066,19914.996298541,12525.458770726,9740.05571291704,8512.19356699372,9295.32568912089,16892.6507934523,34959.4573632995,54519.6697133479,69945.4997547351,63865.8799895822,54524.9176107581,35385.8221659888,20293.2994591368,10970.4918018925,9457.14418370566,8178.90809779016,9050.53497936304,16620.6309269419,34283.5383382933,51801.5639319024,61836.4747555688,57778.6198792909,50800.2406680276,31329.4033301567,18806.4053821846,13209.000187965,9788.25013926371,8281.74295590621,9033.10772848877,16368.1252894375,34615.0981131306,56073.18268883,68840.5393926123,63115.8063038006,60875.7541867559,36995.1549128136,22491.6896303745,14407.8086053701,10422.9611926124,8557.93677868001,8991.62805581644,16560.3625455576,34692.5190916109,52412.0404451887,65199.8190165354,63514.0775126816,59508.6683995148,34153.6102874232,21974.1535338122,13228.6039997215,9699.39114328933,8632.18102220591,9416.22078289149,16755.7765366323,34186.3284770288,52872.9387146005,64738.5565105949,62449.6891846727,58748.3389885758,38861.3493716705,22699.6284430026,14932.9670941652,10567.8191254305,8945.13420659561,9628.87990657606,16737.4416471996,33698.7444528943,52134.3926290635,67006.5631498159,58840.2823388612,55002.7863590017,34774.5246441314,18985.8431629731,11728.3670454079,9643.66095469719,8724.39591863582,9212.99932855651,16921.510156294,35770.7011634971,53696.7102891149,62175.4748043745,58611.3753038757,60550.0911097851,37102.8892474871,22837.2252673534,12707.0731123968,9562.6990047337,8837.66862017367,10148.1387447414,16998.023496216,33205.5324791449,55964.2631090567,70462.9403630203,61919.5357310431,56967.9134207261,35885.1100031057,19715.2203274121,12612.9504033363,10012.2517921652,8930.97327342634,9791.7084922982,17528.8099346259,36117.0548562839,56575.8293791657,69811.5275790914,67985.1020986829,57793.6823906217,35481.0287263456,21091.4720829879,11989.6744147183,10004.3547461544,9199.90598773279,10243.5303761258,17750.0916246154,36988.6595733796,54236.6626958595,69578.536170593,65436.7247276615,57738.5881395731,31688.2788917337,16563.5350160579,11633.2441622751,9454.14366148901,8927.88612122242,9722.81754460901,17737.2025665332,35835.776485925,57336.9738931493,75374.5338863828,68554.2810575612,58408.2432774209,35823.7518648987,20028.7169138315,11404.7909465688,9769.36594227476,9158.24419679613,10528.6184662194,17643.9874960311,36733.7027212148,55338.1716692497,67202.4280074065,62987.5516605224,54797.9287930509,27546.8137324252,16670.7259487017,10869.1020788381,9725.61717320638,9341.40506733213,10239.8072863783,18017.7524638348,36237.0423114961,60474.7699723492,68928.5744272523,64789.9397192752,58667.0098493204,37702.6532635735,19841.8329535481,12056.1111949839,10048.5543817387,9649.82005892974,10561.383037073,18721.8978669024,35800.286046633,61060.9223628225,75182.9296150429,69937.8835043549,62936.8133291312,42730.3349396629,22433.4127388449,16080.8522640219,10742.2619413845,10342.6199800172,10923.3487036172,18809.7566888046,35784.6740728755,61476.4387043134,87575.3354020408,89201.1131785733,70427.3722334865,44633.9246976792,21583.2271106226,12625.2901538622,11198.6220180042,10317.0239821171,11268.5230568308,18530.4757138268,37923.7960368012,56531.8955390697,64374.4054248787,67771.4398481629,59480.6152814279,32428.7268843748,21918.8712589727,14506.6427671973,11212.0544781161,10654.9372268633,11006.487214463,18293.3999318155,36982.8465527372,58533.5102613952,74422.6897868545,67177.6621126935,56747.0796444893,41884.323267704,19331.9192492185,13971.8615380251,11828.6127602965,10771.3866633556,11573.5791952096,19144.5827813468,35828.1481881658,60793.3481535904,93930.5280525663,75810.9379620964,58945.6519339913,42269.4337174879,27515.9140122048,13456.5945378588,11358.7276880511,11057.1106909928,11571.1279805492,19172.5374583934,39526.5931954527,66976.4537145453,91064.0233668195,75160.8866360051,62793.403484138,43509.9935085802,21364.665383545,15124.1982706866,11540.0732814702,10865.4168369024,11682.5854049702,19166.4556894994],"mode":"lines","name":"Fitted","type":"scatter","line":{"color":"red","dash":"dash"},"marker":{"color":"rgba(255,127,14,1)","line":{"color":"rgba(255,127,14,1)"}},"error_y":{"color":"rgba(255,127,14,1)"},"error_x":{"color":"rgba(255,127,14,1)"},"xaxis":"x","yaxis":"y2","frame":null},{"x":["1998-01-01","1998-02-01","1998-03-01","1998-04-01","1998-05-01","1998-06-01","1998-07-01","1998-08-01","1998-09-01","1998-10-01","1998-11-01","1998-12-01","1999-01-01","1999-02-01","1999-03-01","1999-04-01","1999-05-01","1999-06-01","1999-07-01","1999-08-01","1999-09-01","1999-10-01","1999-11-01","1999-12-01","2000-01-01","2000-02-01","2000-03-01","2000-04-01","2000-05-01","2000-06-01","2000-07-01","2000-08-01","2000-09-01","2000-10-01","2000-11-01","2000-12-01","2001-01-01","2001-02-01","2001-03-01","2001-04-01","2001-05-01","2001-06-01","2001-07-01","2001-08-01","2001-09-01","2001-10-01","2001-11-01","2001-12-01","2002-01-01","2002-02-01","2002-03-01","2002-04-01","2002-05-01","2002-06-01","2002-07-01","2002-08-01","2002-09-01","2002-10-01","2002-11-01","2002-12-01","2003-01-01","2003-02-01","2003-03-01","2003-04-01","2003-05-01","2003-06-01","2003-07-01","2003-08-01","2003-09-01","2003-10-01","2003-11-01","2003-12-01","2004-01-01","2004-02-01","2004-03-01","2004-04-01","2004-05-01","2004-06-01","2004-07-01","2004-08-01","2004-09-01","2004-10-01","2004-11-01","2004-12-01","2005-01-01","2005-02-01","2005-03-01","2005-04-01","2005-05-01","2005-06-01","2005-07-01","2005-08-01","2005-09-01","2005-10-01","2005-11-01","2005-12-01","2006-01-01","2006-02-01","2006-03-01","2006-04-01","2006-05-01","2006-06-01","2006-07-01","2006-08-01","2006-09-01","2006-10-01","2006-11-01","2006-12-01","2007-01-01","2007-02-01","2007-03-01","2007-04-01","2007-05-01","2007-06-01","2007-07-01","2007-08-01","2007-09-01","2007-10-01","2007-11-01","2007-12-01","2008-01-01","2008-02-01","2008-03-01","2008-04-01","2008-05-01","2008-06-01","2008-07-01","2008-08-01","2008-09-01","2008-10-01","2008-11-01","2008-12-01","2009-01-01","2009-02-01","2009-03-01","2009-04-01","2009-05-01","2009-06-01","2009-07-01","2009-08-01","2009-09-01","2009-10-01","2009-11-01","2009-12-01","2010-01-01","2010-02-01","2010-03-01","2010-04-01","2010-05-01","2010-06-01","2010-07-01","2010-08-01","2010-09-01","2010-10-01","2010-11-01","2010-12-01","2011-01-01","2011-02-01","2011-03-01","2011-04-01","2011-05-01","2011-06-01","2011-07-01","2011-08-01","2011-09-01","2011-10-01","2011-11-01","2011-12-01","2012-01-01","2012-02-01","2012-03-01","2012-04-01","2012-05-01","2012-06-01","2012-07-01","2012-08-01","2012-09-01","2012-10-01","2012-11-01","2012-12-01","2013-01-01","2013-02-01","2013-03-01","2013-04-01","2013-05-01","2013-06-01","2013-07-01","2013-08-01","2013-09-01","2013-10-01","2013-11-01","2013-12-01","2014-01-01","2014-02-01","2014-03-01","2014-04-01","2014-05-01","2014-06-01","2014-07-01","2014-08-01","2014-09-01","2014-10-01","2014-11-01","2014-12-01","2015-01-01","2015-02-01","2015-03-01","2015-04-01","2015-05-01","2015-06-01","2015-07-01","2015-08-01","2015-09-01","2015-10-01","2015-11-01","2015-12-01","2016-01-01","2016-02-01","2016-03-01","2016-04-01","2016-05-01","2016-06-01","2016-07-01","2016-08-01","2016-09-01","2016-10-01","2016-11-01","2016-12-01","2017-01-01","2017-02-01","2017-03-01","2017-04-01","2017-05-01","2017-06-01","2017-07-01","2017-08-01","2017-09-01","2017-10-01","2017-11-01","2017-12-01","2018-01-01","2018-02-01","2018-03-01","2018-04-01","2018-05-01","2018-06-01","2018-07-01","2018-08-01","2018-09-01","2018-10-01","2018-11-01","2018-12-01","2019-01-01","2019-02-01","2019-03-01","2019-04-01","2019-05-01","2019-06-01","2019-07-01","2019-08-01","2019-09-01","2019-10-01"],"y":[-8689.86576708488,-4704.62141832593,-1855.32559630767,2047.14180366301,1379.75383787744,1637.40718253104,6846.86015270309,-1380.18389604047,1153.41043997585,-613.38795319499,-3167.21947109618,-10527.232615061,5621.25948392093,-4419.02551795665,3987.58737679525,689.03927678732,103.000335450211,4162.67616748814,36.7611682956431,763.075148707339,1521.94153392327,1430.85956115588,-5901.28100903999,-5767.02951832434,2784.98574934986,4611.43568567839,-8961.16268069449,6761.94637679336,2610.00370145901,1823.54122927396,1106.94428708296,1777.80643300628,1791.67431087911,1743.34920654775,-1019.45736329947,6552.33028665207,521.500245264935,-3605.87998958217,4022.08238924187,2436.17783401121,-1494.29945913676,2455.50819810747,355.855816294343,1272.09190220984,1137.46502063696,226.369073058126,-6632.53833829331,-8897.5639319024,-5082.47475556879,-6025.61987929088,-1491.24066802759,2916.59666984334,4625.59461781544,646.999812035043,-48.2501392637078,831.257044093785,298.892271511228,909.874710562526,2148.90188686943,1964.81731116998,-625.539392612292,10539.1936961994,618.245813244102,5071.84508718645,3282.31036962552,547.191394629865,-373.961192612413,164.063221319991,464.37194418356,588.637454442352,-6295.51909161093,-2696.04044518871,3593.18098346463,6828.92248731841,-4575.66839951481,6473.38971257675,901.846466187835,-167.603999721468,213.608856710669,725.818977794093,170.779217108506,-1021.77653663229,-5073.32847702884,-4472.93871460046,1409.44348940505,5918.31081532726,6258.66101142418,3064.65062832953,3632.37155699738,-257.967094165197,-264.819125430542,581.865793404391,-381.879906576061,-2377.4416471996,-6512.74445289431,963.607370936508,-9111.56314981593,974.717661138784,699.213640998321,-1331.52464413135,-14.8431629730912,610.632954592116,-126.660954697192,-413.395918635822,140.000671443489,1704.48984370598,-5441.70116349712,-11543.7102891149,-5084.47480437447,13127.6246961243,-17.0911097850912,4527.11075251289,-2009.22526735341,-846.07311239682,-95.6990047337003,1234.33137982633,-926.138744741409,-4324.02349621596,1820.46752085506,4150.73689094334,-6381.94036302032,1626.46426895688,582.086579273891,-1434.1100031057,605.779672587913,-60.9504033362737,-639.251792165236,56.0267265736584,300.291507701795,1261.19006537414,-43.0548562839322,1804.17062083429,7335.47242090858,-2919.10209868292,-1433.68239062169,1702.97127365442,-2443.47208298789,245.325585281673,-338.354746154351,483.094012267207,36.4696238742163,2660.90837538461,-6368.65957337961,3330.33730414051,1653.463829407,-791.724727661465,-10035.5881395731,-4781.27889173372,999.46498394214,-910.244162275121,-687.143661489012,-691.886121222416,229.182455390986,-166.202566533215,1316.22351407495,12702.0261068507,2427.46611361719,-2733.28105756122,-1892.24327742088,-1580.75186489872,-3268.71691383154,-286.790946568786,-794.365942274759,553.755803203874,-1081.61846621942,1606.01250396892,-4285.70272121482,-3606.17166924966,-1966.42800740653,-5421.55166052238,-16819.9287930509,-1002.81373242522,-1390.72594870166,-147.102078838127,-646.617173206381,-565.405067332125,-268.807286378316,-161.75246383476,7229.95768850388,-5238.76997234915,-20.5744272522716,1002.0602807248,1389.9901506796,-4470.65326357348,-2245.83295354807,-922.11119498388,-589.554381738675,-464.820058929741,661.616962927015,-2127.8978669024,8658.71395336703,7657.07763717748,4769.07038495709,4963.11649564508,7899.18667086881,-4087.33493966288,3731.5872611551,-3717.85226402194,-56.2619413845168,-659.619980017163,193.65129638277,-2549.75668880456,9290.32592712446,1155.5612956866,1430.66459795918,1905.88682142671,4303.62776651354,-8163.92469767923,-3332.22711062257,443.709846137812,-868.622018004184,-173.023982117138,-1066.52305683075,2143.52428617315,-4043.79603680124,-12229.8955390697,10204.5945751213,-1085.43984816287,-11943.6152814279,4481.27311562519,178.128741027285,-1707.64276719733,-437.054478116112,-1387.93722686332,-1626.48721446297,7.60006818445254,1008.15344726283,7610.4897386048,-1451.68978685446,-6814.66211269351,11325.9203555107,-10974.323267704,1287.08075078149,-113.861538025085,-1096.61276029647,-554.386663355635,-617.579195209568,-3687.58278134682,6842.85181183423,14943.6518464096,-2235.52805256634,-10902.9379620964,9676.34806600869,6374.56628251214,-8331.91401220475,-933.594537858819,-296.727688051074,-1145.11069099281,-853.12798054919,4134.46254160657,16469.4068045473,2144.54628545469,-1101.02336681954,-2073.88663600515,8262.59651586204,-8719.99350858024,1194.33461645497,-2501.19827068664,-1200.07328147024,-1007.41683690238,-1277.58540497021,-1387.45568949938],"mode":"lines","line":{"color":"green"},"name":"Residuals","type":"scatter","marker":{"color":"rgba(44,160,44,1)","line":{"color":"rgba(44,160,44,1)"}},"error_y":{"color":"rgba(44,160,44,1)"},"error_x":{"color":"rgba(44,160,44,1)"},"xaxis":"x","yaxis":"y","frame":null},{"x":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"y":[1,0.0107397028445194,-0.0645108653634039,0.112853393239058,0.0596754202938454,-0.177388213634022,-0.0568286836733614,-0.0377880882135868,-0.0182191492133057,-0.0881041855131991,0.0481135622917611,0.130473861437223,0.0591481266288595,0.0281026686348262,0.00722917406969389,-0.113300240707389,-0.0271896896922625,-0.0599295687177722,-0.0595624123052583,-0.0880447933345874,-0.0126404775297146,-0.102815089442707,-0.00192297116330851,0.12904231859075,0.046699134334607,-0.0649748619871546,0.118329635695495,-0.0504841322951157,-0.0625793957141033,-0.0202321996935938,-0.00378812144807016,-0.0636393665365413,-0.123921830985524,-0.0164041207981177,0.118004884411821,-0.123711146997996,0.0412914100579651],"type":"bar","width":[0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01],"showlegend":false,"marker":{"color":"#00526d","line":{"color":"#00526d"}},"name":"Autocorrelation","error_y":{"color":"rgba(214,39,40,1)"},"error_x":{"color":"rgba(214,39,40,1)"},"xaxis":"x2","yaxis":"y4","frame":null},{"x":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"y":[0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636,0.121086979347636],"type":"scatter","mode":"lines","line":{"color":"red","dash":"dash","width":1},"showlegend":false,"name":"CI Upper","marker":{"color":"rgba(148,103,189,1)","line":{"color":"rgba(148,103,189,1)"}},"error_y":{"color":"rgba(148,103,189,1)"},"error_x":{"color":"rgba(148,103,189,1)"},"xaxis":"x2","yaxis":"y4","frame":null},{"x":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"y":[-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636,-0.121086979347636],"type":"scatter","mode":"lines","line":{"color":"red","dash":"dash","width":1},"showlegend":false,"name":"CI Lower","marker":{"color":"rgba(140,86,75,1)","line":{"color":"rgba(140,86,75,1)"}},"error_y":{"color":"rgba(140,86,75,1)"},"error_x":{"color":"rgba(140,86,75,1)"},"xaxis":"x2","yaxis":"y4","frame":null},{"x":[-8689.86576708488,-4704.62141832593,-1855.32559630767,2047.14180366301,1379.75383787744,1637.40718253104,6846.86015270309,-1380.18389604047,1153.41043997585,-613.38795319499,-3167.21947109618,-10527.232615061,5621.25948392093,-4419.02551795665,3987.58737679525,689.03927678732,103.000335450211,4162.67616748814,36.7611682956431,763.075148707339,1521.94153392327,1430.85956115588,-5901.28100903999,-5767.02951832434,2784.98574934986,4611.43568567839,-8961.16268069449,6761.94637679336,2610.00370145901,1823.54122927396,1106.94428708296,1777.80643300628,1791.67431087911,1743.34920654775,-1019.45736329947,6552.33028665207,521.500245264935,-3605.87998958217,4022.08238924187,2436.17783401121,-1494.29945913676,2455.50819810747,355.855816294343,1272.09190220984,1137.46502063696,226.369073058126,-6632.53833829331,-8897.5639319024,-5082.47475556879,-6025.61987929088,-1491.24066802759,2916.59666984334,4625.59461781544,646.999812035043,-48.2501392637078,831.257044093785,298.892271511228,909.874710562526,2148.90188686943,1964.81731116998,-625.539392612292,10539.1936961994,618.245813244102,5071.84508718645,3282.31036962552,547.191394629865,-373.961192612413,164.063221319991,464.37194418356,588.637454442352,-6295.51909161093,-2696.04044518871,3593.18098346463,6828.92248731841,-4575.66839951481,6473.38971257675,901.846466187835,-167.603999721468,213.608856710669,725.818977794093,170.779217108506,-1021.77653663229,-5073.32847702884,-4472.93871460046,1409.44348940505,5918.31081532726,6258.66101142418,3064.65062832953,3632.37155699738,-257.967094165197,-264.819125430542,581.865793404391,-381.879906576061,-2377.4416471996,-6512.74445289431,963.607370936508,-9111.56314981593,974.717661138784,699.213640998321,-1331.52464413135,-14.8431629730912,610.632954592116,-126.660954697192,-413.395918635822,140.000671443489,1704.48984370598,-5441.70116349712,-11543.7102891149,-5084.47480437447,13127.6246961243,-17.0911097850912,4527.11075251289,-2009.22526735341,-846.07311239682,-95.6990047337003,1234.33137982633,-926.138744741409,-4324.02349621596,1820.46752085506,4150.73689094334,-6381.94036302032,1626.46426895688,582.086579273891,-1434.1100031057,605.779672587913,-60.9504033362737,-639.251792165236,56.0267265736584,300.291507701795,1261.19006537414,-43.0548562839322,1804.17062083429,7335.47242090858,-2919.10209868292,-1433.68239062169,1702.97127365442,-2443.47208298789,245.325585281673,-338.354746154351,483.094012267207,36.4696238742163,2660.90837538461,-6368.65957337961,3330.33730414051,1653.463829407,-791.724727661465,-10035.5881395731,-4781.27889173372,999.46498394214,-910.244162275121,-687.143661489012,-691.886121222416,229.182455390986,-166.202566533215,1316.22351407495,12702.0261068507,2427.46611361719,-2733.28105756122,-1892.24327742088,-1580.75186489872,-3268.71691383154,-286.790946568786,-794.365942274759,553.755803203874,-1081.61846621942,1606.01250396892,-4285.70272121482,-3606.17166924966,-1966.42800740653,-5421.55166052238,-16819.9287930509,-1002.81373242522,-1390.72594870166,-147.102078838127,-646.617173206381,-565.405067332125,-268.807286378316,-161.75246383476,7229.95768850388,-5238.76997234915,-20.5744272522716,1002.0602807248,1389.9901506796,-4470.65326357348,-2245.83295354807,-922.11119498388,-589.554381738675,-464.820058929741,661.616962927015,-2127.8978669024,8658.71395336703,7657.07763717748,4769.07038495709,4963.11649564508,7899.18667086881,-4087.33493966288,3731.5872611551,-3717.85226402194,-56.2619413845168,-659.619980017163,193.65129638277,-2549.75668880456,9290.32592712446,1155.5612956866,1430.66459795918,1905.88682142671,4303.62776651354,-8163.92469767923,-3332.22711062257,443.709846137812,-868.622018004184,-173.023982117138,-1066.52305683075,2143.52428617315,-4043.79603680124,-12229.8955390697,10204.5945751213,-1085.43984816287,-11943.6152814279,4481.27311562519,178.128741027285,-1707.64276719733,-437.054478116112,-1387.93722686332,-1626.48721446297,7.60006818445254,1008.15344726283,7610.4897386048,-1451.68978685446,-6814.66211269351,11325.9203555107,-10974.323267704,1287.08075078149,-113.861538025085,-1096.61276029647,-554.386663355635,-617.579195209568,-3687.58278134682,6842.85181183423,14943.6518464096,-2235.52805256634,-10902.9379620964,9676.34806600869,6374.56628251214,-8331.91401220475,-933.594537858819,-296.727688051074,-1145.11069099281,-853.12798054919,4134.46254160657,16469.4068045473,2144.54628545469,-1101.02336681954,-2073.88663600515,8262.59651586204,-8719.99350858024,1194.33461645497,-2501.19827068664,-1200.07328147024,-1007.41683690238,-1277.58540497021,-1387.45568949938],"marker":{"color":"rgb(227, 119, 194)","line":{"color":"rgba(227,119,194,1)"}},"name":"Residauls Dist.","type":"histogram","error_y":{"color":"rgba(227,119,194,1)"},"error_x":{"color":"rgba(227,119,194,1)"},"xaxis":"x3","yaxis":"y3","frame":null}],"layout":{"xaxis":{"domain":[0,1],"automargin":true,"title":"Index","anchor":"y","range":["1997-01-01","2019-10-01"]},"xaxis2":{"domain":[0,0.46],"automargin":true,"title":"Lag","anchor":"y4"},"xaxis3":{"domain":[0.54,1],"automargin":true,"title":"Residuals Distribution","anchor":"y3"},"yaxis3":{"domain":[0,0.36],"automargin":true,"title":"Count","anchor":"x3"},"yaxis4":{"domain":[0,0.36],"automargin":true,"title":"ACF","anchor":"x2"},"yaxis":{"domain":[0.44,0.7088],"automargin":true,"title":"Residuals","anchor":"x"},"yaxis2":{"domain":[0.7312,1],"automargin":true,"title":"Fitted vs. Actuals","anchor":"x"},"annotations":[],"shapes":[],"images":[],"margin":{"b":40,"l":60,"t":25,"r":10},"hovermode":"closest","showlegend":false,"title":"Residuals Analysis"},"attrs":{"ab3f60c2ac58":{"x":{},"y":{},"mode":"lines","name":"Actual","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"scatter"},"ab3f60c2ac58.1":{"x":{},"y":{},"mode":"lines","name":"Fitted","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"scatter","line":{"dash":"dash","color":"red"},"inherit":true},"ab3fcc0f709":{"x":{},"y":{},"mode":"lines","line":{"color":"green"},"name":"Residuals","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"scatter"},"ab3f509a7669":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":{},"y":{},"type":"bar","width":0.01,"showlegend":false,"marker":{"color":"#00526d","line":{"color":"#00526d"}},"name":"Autocorrelation","inherit":true},"ab3f509a7669.1":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":{},"y":{},"type":"scatter","mode":"lines","line":{"dash":"dash","color":"red","width":1},"showlegend":false,"name":"CI Upper","inherit":true},"ab3f509a7669.2":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":{},"y":{},"type":"scatter","mode":"lines","line":{"dash":"dash","color":"red","width":1},"showlegend":false,"name":"CI Lower","inherit":true},"ab3f4cd410d6":{"x":[-8689.86576708488,-4704.62141832593,-1855.32559630767,2047.14180366301,1379.75383787744,1637.40718253104,6846.86015270309,-1380.18389604047,1153.41043997585,-613.38795319499,-3167.21947109618,-10527.232615061,5621.25948392093,-4419.02551795665,3987.58737679525,689.03927678732,103.000335450211,4162.67616748814,36.7611682956431,763.075148707339,1521.94153392327,1430.85956115588,-5901.28100903999,-5767.02951832434,2784.98574934986,4611.43568567839,-8961.16268069449,6761.94637679336,2610.00370145901,1823.54122927396,1106.94428708296,1777.80643300628,1791.67431087911,1743.34920654775,-1019.45736329947,6552.33028665207,521.500245264935,-3605.87998958217,4022.08238924187,2436.17783401121,-1494.29945913676,2455.50819810747,355.855816294343,1272.09190220984,1137.46502063696,226.369073058126,-6632.53833829331,-8897.5639319024,-5082.47475556879,-6025.61987929088,-1491.24066802759,2916.59666984334,4625.59461781544,646.999812035043,-48.2501392637078,831.257044093785,298.892271511228,909.874710562526,2148.90188686943,1964.81731116998,-625.539392612292,10539.1936961994,618.245813244102,5071.84508718645,3282.31036962552,547.191394629865,-373.961192612413,164.063221319991,464.37194418356,588.637454442352,-6295.51909161093,-2696.04044518871,3593.18098346463,6828.92248731841,-4575.66839951481,6473.38971257675,901.846466187835,-167.603999721468,213.608856710669,725.818977794093,170.779217108506,-1021.77653663229,-5073.32847702884,-4472.93871460046,1409.44348940505,5918.31081532726,6258.66101142418,3064.65062832953,3632.37155699738,-257.967094165197,-264.819125430542,581.865793404391,-381.879906576061,-2377.4416471996,-6512.74445289431,963.607370936508,-9111.56314981593,974.717661138784,699.213640998321,-1331.52464413135,-14.8431629730912,610.632954592116,-126.660954697192,-413.395918635822,140.000671443489,1704.48984370598,-5441.70116349712,-11543.7102891149,-5084.47480437447,13127.6246961243,-17.0911097850912,4527.11075251289,-2009.22526735341,-846.07311239682,-95.6990047337003,1234.33137982633,-926.138744741409,-4324.02349621596,1820.46752085506,4150.73689094334,-6381.94036302032,1626.46426895688,582.086579273891,-1434.1100031057,605.779672587913,-60.9504033362737,-639.251792165236,56.0267265736584,300.291507701795,1261.19006537414,-43.0548562839322,1804.17062083429,7335.47242090858,-2919.10209868292,-1433.68239062169,1702.97127365442,-2443.47208298789,245.325585281673,-338.354746154351,483.094012267207,36.4696238742163,2660.90837538461,-6368.65957337961,3330.33730414051,1653.463829407,-791.724727661465,-10035.5881395731,-4781.27889173372,999.46498394214,-910.244162275121,-687.143661489012,-691.886121222416,229.182455390986,-166.202566533215,1316.22351407495,12702.0261068507,2427.46611361719,-2733.28105756122,-1892.24327742088,-1580.75186489872,-3268.71691383154,-286.790946568786,-794.365942274759,553.755803203874,-1081.61846621942,1606.01250396892,-4285.70272121482,-3606.17166924966,-1966.42800740653,-5421.55166052238,-16819.9287930509,-1002.81373242522,-1390.72594870166,-147.102078838127,-646.617173206381,-565.405067332125,-268.807286378316,-161.75246383476,7229.95768850388,-5238.76997234915,-20.5744272522716,1002.0602807248,1389.9901506796,-4470.65326357348,-2245.83295354807,-922.11119498388,-589.554381738675,-464.820058929741,661.616962927015,-2127.8978669024,8658.71395336703,7657.07763717748,4769.07038495709,4963.11649564508,7899.18667086881,-4087.33493966288,3731.5872611551,-3717.85226402194,-56.2619413845168,-659.619980017163,193.65129638277,-2549.75668880456,9290.32592712446,1155.5612956866,1430.66459795918,1905.88682142671,4303.62776651354,-8163.92469767923,-3332.22711062257,443.709846137812,-868.622018004184,-173.023982117138,-1066.52305683075,2143.52428617315,-4043.79603680124,-12229.8955390697,10204.5945751213,-1085.43984816287,-11943.6152814279,4481.27311562519,178.128741027285,-1707.64276719733,-437.054478116112,-1387.93722686332,-1626.48721446297,7.60006818445254,1008.15344726283,7610.4897386048,-1451.68978685446,-6814.66211269351,11325.9203555107,-10974.323267704,1287.08075078149,-113.861538025085,-1096.61276029647,-554.386663355635,-617.579195209568,-3687.58278134682,6842.85181183423,14943.6518464096,-2235.52805256634,-10902.9379620964,9676.34806600869,6374.56628251214,-8331.91401220475,-933.594537858819,-296.727688051074,-1145.11069099281,-853.12798054919,4134.46254160657,16469.4068045473,2144.54628545469,-1101.02336681954,-2073.88663600515,8262.59651586204,-8719.99350858024,1194.33461645497,-2501.19827068664,-1200.07328147024,-1007.41683690238,-1277.58540497021,-1387.45568949938],"marker":{"color":"rgb(227, 119, 194)"},"name":"Residauls Dist.","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"histogram"}},"source":"A","config":{"showSendToCloud":false},"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.2,"selected":{"opacity":1},"debounce":0},"subplot":true,".hideLegend":true,"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}
Forecasting
Once the model is trained, forecasting the future observations of the series is strigthforward with the forecastLM function. The forecastLM function is fairly similar to the forecast function from the forecast package and it has the following arguments:
model
– antrainLM
objectnewdata
– atsibble
object with the future values of the external regressors (is used as an input for to train the model)h
– the horizon of the forecastpi
– the level of the prediction intervals, by default will calculate the 80% and 95% prediction intervals
fc4 <- forecastLM(md4, h = 60)
The plot_fc
function returns a visualization of the forecasted object:
plot_fc(fc4)
{"x":{"visdat":{"ab3f1e1958f6":["function () ","plotlyVisDat"]},"cur_data":"ab3f1e1958f6","attrs":{"ab3f1e1958f6":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":{},"y":{},"type":"scatter","mode":"lines","line":{"color":"#00526d"},"name":"Actual","inherit":true},"ab3f1e1958f6.1":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":["2019-11-01","2019-12-01","2020-01-01","2020-02-01","2020-03-01","2020-04-01","2020-05-01","2020-06-01","2020-07-01","2020-08-01","2020-09-01","2020-10-01","2020-11-01","2020-12-01","2021-01-01","2021-02-01","2021-03-01","2021-04-01","2021-05-01","2021-06-01","2021-07-01","2021-08-01","2021-09-01","2021-10-01","2021-11-01","2021-12-01","2022-01-01","2022-02-01","2022-03-01","2022-04-01","2022-05-01","2022-06-01","2022-07-01","2022-08-01","2022-09-01","2022-10-01","2022-11-01","2022-12-01","2023-01-01","2023-02-01","2023-03-01","2023-04-01","2023-05-01","2023-06-01","2023-07-01","2023-08-01","2023-09-01","2023-10-01","2023-11-01","2023-12-01","2024-01-01","2024-02-01","2024-03-01","2024-04-01","2024-05-01","2024-06-01","2024-07-01","2024-08-01","2024-09-01","2024-10-01"],"ymin":[27750.3935053414,49161.8999420886,61959.199835366,57464.9490106121,50710.7598051391,29282.8085180473,13870.9635606425,6186.90394315195,3624.73978691895,2823.39056231992,3495.63173859023,11036.3387687717,29084.4991309006,49896.8750551156,62420.4583940772,57805.2509830719,50995.4933242352,29542.1552502075,14118.8262432383,6429.56255814726,3865.03826429062,3062.61828679987,3734.37360130103,11274.860151748,29322.4889597166,50134.8235851363,62657.0193796213,58042.2785676638,51232.863692957,29779.5788190481,14356.2742975574,6667.02179441711,4102.50258950598,3300.08492442975,3971.84128895691,11512.328316051,29559.5282530847,50371.8670906951,62892.7028524932,58278.4339378581,51469.3645685099,30016.1345240148,14592.8552490193,6903.61427765252,4339.10032136208,3536.68504135334,4208.44248891682,11748.9300076469,29795.7036258233,50608.046662032,63127.5294922791,58513.7284132318,51705.002919195,30251.8273790932,14828.5732271098,7139.34373643227,4574.83500660067,3772.4221018123,4444.18062798663,11984.6686363532],"ymax":[46557.2942656287,67961.0674047429,80819.7775434946,76270.7165617182,69503.218529611,48071.3614218884,32658.3627360321,24973.9070119031,22411.5893512972,21610.1758711915,22282.3890008223,29823.0835322779,47901.0036185096,68713.2636860825,81305.3533660312,76632.033616683,69808.8205828165,48351.847684638,32927.4140050759,25237.7612448504,22673.0835004854,21870.5986458058,22542.3254984633,30082.7993343501,48161.0507608839,68973.2612663432,81566.6972563365,76892.8921949601,70069.3278846524,48612.2979323807,33187.8380183322,25498.1732824224,22933.4900889002,22131.0027583352,22802.7284867804,30343.2018123529,48421.8820945429,69234.0883808776,81828.8844004111,77154.6074402842,70330.6976239699,48873.6128419902,33449.127681313,25759.4514135692,23194.7629713989,22392.2732557538,23063.9979011571,30604.4707350911,48683.5773361371,69495.779423873,82091.9283749573,77417.1835792425,70592.9298876167,49135.7906012437,33711.2803175544,26021.5925691213,23456.8989004922,22654.4068096268,23326.1303764192,30866.6027207167],"type":"scatter","mode":"lines","hoveron":"points","fill":"toself","line":{"color":"rgba( 150,150,150 0.6 )"},"fillcolor":"rgba( 150,150,150 0.6 )","name":"95% PI","inherit":true},"ab3f1e1958f6.2":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":["2019-11-01","2019-12-01","2020-01-01","2020-02-01","2020-03-01","2020-04-01","2020-05-01","2020-06-01","2020-07-01","2020-08-01","2020-09-01","2020-10-01","2020-11-01","2020-12-01","2021-01-01","2021-02-01","2021-03-01","2021-04-01","2021-05-01","2021-06-01","2021-07-01","2021-08-01","2021-09-01","2021-10-01","2021-11-01","2021-12-01","2022-01-01","2022-02-01","2022-03-01","2022-04-01","2022-05-01","2022-06-01","2022-07-01","2022-08-01","2022-09-01","2022-10-01","2022-11-01","2022-12-01","2023-01-01","2023-02-01","2023-03-01","2023-04-01","2023-05-01","2023-06-01","2023-07-01","2023-08-01","2023-09-01","2023-10-01","2023-11-01","2023-12-01","2024-01-01","2024-02-01","2024-03-01","2024-04-01","2024-05-01","2024-06-01","2024-07-01","2024-08-01","2024-09-01","2024-10-01"],"ymin":[31018.9767952309,52429.139207902,65237.1120187825,60733.3353521239,53976.8331122547,32548.2030051804,17136.1575332099,9452.02907356633,6889.8382387309,6088.47784671634,6760.71414856432,14301.4190065045,32354.7515199705,53167.1073086464,65702.5968454583,61077.2896832784,54265.1935203712,32811.2237247413,17387.7027289684,9698.37142377882,7133.82046068125,6331.38920772847,7003.13957564605,14543.6239163404,32596.5748441314,53408.887897872,65943.4650259735,61318.4590235341,54506.5850190984,33052.6492617339,17629.1439364608,9939.81978849404,7375.27208285116,6572.84231012063,7244.59335018808,14785.0779959986,32837.7491231794,53650.0649237732,66183.7547578946,61559.0566238335,54747.408029041,33293.5080426618,17870.0191883295,10180.70256375,7616.15828233378,6813.73006563334,7485.48181227915,15025.9667788354,33078.3597730519,53890.6783128362,66423.4854863476,61799.0925710131,54987.668322524,33533.803895136,18110.3314312065,10421.0222966971,7856.48142505379,7054.05475796128,7725.80720829924,15266.2924942973],"ymax":[43288.7109757392,64693.8281389295,77541.865360078,73002.3302202063,66237.1452224953,44805.9669347554,29393.1687634648,21708.7818814888,19146.4908994853,18345.0885867951,19017.3065908482,26558.0032945451,44630.7512294397,65443.0314325516,78023.2149146501,73359.9949164765,66539.1203866804,45082.7792101042,29658.5375193458,21968.9523792189,19404.3013040948,18601.8277248772,19273.5595241183,26814.0355697577,44886.9648764691,65699.1969536075,78280.2516099843,73616.7117390898,66795.606558511,45339.2274896949,29914.9683794287,22225.3752883454,19660.7205955551,18858.2453726443,19529.9764255492,27070.4521324053,45143.6612244482,65955.8905477995,78537.8324950097,73873.9847543089,67052.6541634388,45596.2393233432,30171.9637420028,22482.3631274717,19917.7050104272,19115.2282314738,19786.9585777948,27327.4339639025,45400.9211889085,66213.1477730688,78795.9723808888,74131.8194214612,67310.2644842877,45853.814085201,30429.5221134577,22739.9140088565,20175.2524820391,19372.7741534778,20044.5037961066,27584.9788627726],"type":"scatter","mode":"lines","hoveron":"points","fill":"toself","line":{"color":"rgba( 150,150,150 0.8 )"},"fillcolor":"rgba( 150,150,150 0.8 )","name":"80% PI","inherit":true},"ab3f1e1958f6.3":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":["2019-11-01","2019-12-01","2020-01-01","2020-02-01","2020-03-01","2020-04-01","2020-05-01","2020-06-01","2020-07-01","2020-08-01","2020-09-01","2020-10-01","2020-11-01","2020-12-01","2021-01-01","2021-02-01","2021-03-01","2021-04-01","2021-05-01","2021-06-01","2021-07-01","2021-08-01","2021-09-01","2021-10-01","2021-11-01","2021-12-01","2022-01-01","2022-02-01","2022-03-01","2022-04-01","2022-05-01","2022-06-01","2022-07-01","2022-08-01","2022-09-01","2022-10-01","2022-11-01","2022-12-01","2023-01-01","2023-02-01","2023-03-01","2023-04-01","2023-05-01","2023-06-01","2023-07-01","2023-08-01","2023-09-01","2023-10-01","2023-11-01","2023-12-01","2024-01-01","2024-02-01","2024-03-01","2024-04-01","2024-05-01","2024-06-01","2024-07-01","2024-08-01","2024-09-01","2024-10-01"],"y":[37153.8438854851,58561.4836734157,71389.4886894303,66867.8327861651,60106.989167375,38677.0849699679,23264.6631483373,15580.4054775275,13018.1645691081,12216.7832167557,12889.0103697063,20429.7111505248,38492.7513747051,59305.069370599,71862.9058800542,67218.6422998774,60402.1569535258,38947.0014674228,23523.1201241571,15833.6619014989,13269.060882388,12466.6084663028,13138.3495498822,20678.829743049,38741.7698603003,59554.0424257398,72111.8583179789,67467.5853813119,60651.0957888047,39195.9383757144,23772.0561579448,16082.5975384197,13517.9963392031,12715.5438413825,13387.2848878687,20927.765064202,38990.7051738138,59802.9777357864,72360.7936264521,67716.5206890712,60900.0310962399,39444.8736830025,24020.9914651662,16331.5328456108,13766.9316463805,12964.4791485536,13636.220195037,21176.700371369,39239.6404809802,60051.9130429525,72609.7289336182,67965.4559962372,61148.9664034059,39693.8089901685,24269.9267723321,16580.4681527768,14015.8669535464,13213.4144557195,13885.1555022029,21425.6356785349],"type":"scatter","mode":"lines","name":"Forecast","line":{"color":"#00526d","dash":"dash"},"inherit":true}},"layout":{"margin":{"b":40,"l":60,"t":25,"r":10},"title":"y Forecast <br />Horizon - 60","paper_bgcolor":"white","plot_bgcolor":"white","font":{"color":"black"},"yaxis":{"domain":[0,1],"automargin":true,"title":"y","linecolor":[],"zerolinecolor":[],"gridcolor":[]},"xaxis":{"domain":[0,1],"automargin":true,"title":"date","linecolor":[],"zerolinecolor":[],"gridcolor":[]},"hovermode":"closest","showlegend":true},"source":"A","config":{"showSendToCloud":false},"data":[{"x":["1997-01-01","1997-02-01","1997-03-01","1997-04-01","1997-05-01","1997-06-01","1997-07-01","1997-08-01","1997-09-01","1997-10-01","1997-11-01","1997-12-01","1998-01-01","1998-02-01","1998-03-01","1998-04-01","1998-05-01","1998-06-01","1998-07-01","1998-08-01","1998-09-01","1998-10-01","1998-11-01","1998-12-01","1999-01-01","1999-02-01","1999-03-01","1999-04-01","1999-05-01","1999-06-01","1999-07-01","1999-08-01","1999-09-01","1999-10-01","1999-11-01","1999-12-01","2000-01-01","2000-02-01","2000-03-01","2000-04-01","2000-05-01","2000-06-01","2000-07-01","2000-08-01","2000-09-01","2000-10-01","2000-11-01","2000-12-01","2001-01-01","2001-02-01","2001-03-01","2001-04-01","2001-05-01","2001-06-01","2001-07-01","2001-08-01","2001-09-01","2001-10-01","2001-11-01","2001-12-01","2002-01-01","2002-02-01","2002-03-01","2002-04-01","2002-05-01","2002-06-01","2002-07-01","2002-08-01","2002-09-01","2002-10-01","2002-11-01","2002-12-01","2003-01-01","2003-02-01","2003-03-01","2003-04-01","2003-05-01","2003-06-01","2003-07-01","2003-08-01","2003-09-01","2003-10-01","2003-11-01","2003-12-01","2004-01-01","2004-02-01","2004-03-01","2004-04-01","2004-05-01","2004-06-01","2004-07-01","2004-08-01","2004-09-01","2004-10-01","2004-11-01","2004-12-01","2005-01-01","2005-02-01","2005-03-01","2005-04-01","2005-05-01","2005-06-01","2005-07-01","2005-08-01","2005-09-01","2005-10-01","2005-11-01","2005-12-01","2006-01-01","2006-02-01","2006-03-01","2006-04-01","2006-05-01","2006-06-01","2006-07-01","2006-08-01","2006-09-01","2006-10-01","2006-11-01","2006-12-01","2007-01-01","2007-02-01","2007-03-01","2007-04-01","2007-05-01","2007-06-01","2007-07-01","2007-08-01","2007-09-01","2007-10-01","2007-11-01","2007-12-01","2008-01-01","2008-02-01","2008-03-01","2008-04-01","2008-05-01","2008-06-01","2008-07-01","2008-08-01","2008-09-01","2008-10-01","2008-11-01","2008-12-01","2009-01-01","2009-02-01","2009-03-01","2009-04-01","2009-05-01","2009-06-01","2009-07-01","2009-08-01","2009-09-01","2009-10-01","2009-11-01","2009-12-01","2010-01-01","2010-02-01","2010-03-01","2010-04-01","2010-05-01","2010-06-01","2010-07-01","2010-08-01","2010-09-01","2010-10-01","2010-11-01","2010-12-01","2011-01-01","2011-02-01","2011-03-01","2011-04-01","2011-05-01","2011-06-01","2011-07-01","2011-08-01","2011-09-01","2011-10-01","2011-11-01","2011-12-01","2012-01-01","2012-02-01","2012-03-01","2012-04-01","2012-05-01","2012-06-01","2012-07-01","2012-08-01","2012-09-01","2012-10-01","2012-11-01","2012-12-01","2013-01-01","2013-02-01","2013-03-01","2013-04-01","2013-05-01","2013-06-01","2013-07-01","2013-08-01","2013-09-01","2013-10-01","2013-11-01","2013-12-01","2014-01-01","2014-02-01","2014-03-01","2014-04-01","2014-05-01","2014-06-01","2014-07-01","2014-08-01","2014-09-01","2014-10-01","2014-11-01","2014-12-01","2015-01-01","2015-02-01","2015-03-01","2015-04-01","2015-05-01","2015-06-01","2015-07-01","2015-08-01","2015-09-01","2015-10-01","2015-11-01","2015-12-01","2016-01-01","2016-02-01","2016-03-01","2016-04-01","2016-05-01","2016-06-01","2016-07-01","2016-08-01","2016-09-01","2016-10-01","2016-11-01","2016-12-01","2017-01-01","2017-02-01","2017-03-01","2017-04-01","2017-05-01","2017-06-01","2017-07-01","2017-08-01","2017-09-01","2017-10-01","2017-11-01","2017-12-01","2018-01-01","2018-02-01","2018-03-01","2018-04-01","2018-05-01","2018-06-01","2018-07-01","2018-08-01","2018-09-01","2018-10-01","2018-11-01","2018-12-01","2019-01-01","2019-02-01","2019-03-01","2019-04-01","2019-05-01","2019-06-01","2019-07-01","2019-08-01","2019-09-01","2019-10-01"],"y":[62019,56003,51213,37597,24082,14469,9719,10267,9878,17385,34936,48074,54949,51711,48382,32412,18810,12205,15342,8900,9546,15308,30010,41937,66611,57425,56954,35080,18880,14898,9890,8705,9962,17677,28487,46142,65819,66232,48138,37288,22525,14349,10847,10290,11087,18636,33940,61072,70467,60260,58547,37822,18799,13426,9813,9451,10188,16847,27651,42904,56754,51753,49309,34246,23432,13856,9740,9113,9332,17278,36764,58038,68215,73655,61494,42067,25774,14955,10049,8722,9456,17149,28397,49716,68793,70343,54933,40627,22876,13061,9913,9358,9587,15734,29113,48400,66148,68368,65007,41926,26332,14675,10303,9527,9247,14360,27186,53098,57895,59815,55702,33443,18971,12339,9517,8311,9353,18626,30329,42153,57091,71739,60533,41630,20828,11861,9467,10072,9222,12674,35026,60115,64081,63546,57550,34451,20321,12552,9373,8987,10092,18790,36074,58380,77147,65066,56360,37184,18648,12235,9666,9683,10280,20411,30620,57567,71232,64645,47703,26907,17563,10723,8767,8236,9952,17571,37152,70039,77802,65821,56516,34243,16760,11118,8975,9712,9447,19250,32448,51732,65236,57566,37978,26544,15280,10722,9079,8776,9971,17856,43467,55236,68908,65792,60057,33232,17596,11134,9459,9185,11223,16594,44459,68718,79952,74901,70836,38643,26165,12363,10686,9683,11117,16260,45075,62632,89006,91107,74731,36470,18251,13069,10330,10144,10202,20674,33880,44302,74579,66686,47537,36910,22097,12799,10775,9267,9380,18301,37991,66144,72971,60363,68073,30910,20619,13858,10732,10217,10956,15457,42671,75737,91695,64908,68622,48644,19184,12523,11062,9912,10718,23307,55996,69121,89963,73087,71056,34790,22559,12623,10340,9858,10405,17779],"type":"scatter","mode":"lines","line":{"color":"#00526d"},"name":"Actual","marker":{"color":"rgba(31,119,180,1)","line":{"color":"rgba(31,119,180,1)"}},"error_y":{"color":"rgba(31,119,180,1)"},"error_x":{"color":"rgba(31,119,180,1)"},"xaxis":"x","yaxis":"y","frame":null},{"fillcolor":"rgba( 150,150,150 0.6 )","x":["2019-11-01","2019-12-01","2020-01-01","2020-02-01","2020-03-01","2020-04-01","2020-05-01","2020-06-01","2020-07-01","2020-08-01","2020-09-01","2020-10-01","2020-11-01","2020-12-01","2021-01-01","2021-02-01","2021-03-01","2021-04-01","2021-05-01","2021-06-01","2021-07-01","2021-08-01","2021-09-01","2021-10-01","2021-11-01","2021-12-01","2022-01-01","2022-02-01","2022-03-01","2022-04-01","2022-05-01","2022-06-01","2022-07-01","2022-08-01","2022-09-01","2022-10-01","2022-11-01","2022-12-01","2023-01-01","2023-02-01","2023-03-01","2023-04-01","2023-05-01","2023-06-01","2023-07-01","2023-08-01","2023-09-01","2023-10-01","2023-11-01","2023-12-01","2024-01-01","2024-02-01","2024-03-01","2024-04-01","2024-05-01","2024-06-01","2024-07-01","2024-08-01","2024-09-01","2024-10-01","2024-10-01","2024-10-01","2024-09-01","2024-08-01","2024-07-01","2024-06-01","2024-05-01","2024-04-01","2024-03-01","2024-02-01","2024-01-01","2023-12-01","2023-11-01","2023-10-01","2023-09-01","2023-08-01","2023-07-01","2023-06-01","2023-05-01","2023-04-01","2023-03-01","2023-02-01","2023-01-01","2022-12-01","2022-11-01","2022-10-01","2022-09-01","2022-08-01","2022-07-01","2022-06-01","2022-05-01","2022-04-01","2022-03-01","2022-02-01","2022-01-01","2021-12-01","2021-11-01","2021-10-01","2021-09-01","2021-08-01","2021-07-01","2021-06-01","2021-05-01","2021-04-01","2021-03-01","2021-02-01","2021-01-01","2020-12-01","2020-11-01","2020-10-01","2020-09-01","2020-08-01","2020-07-01","2020-06-01","2020-05-01","2020-04-01","2020-03-01","2020-02-01","2020-01-01","2019-12-01","2019-11-01"],"type":"scatter","mode":"lines","hoveron":"points","fill":"toself","line":{"color":"rgba( 150,150,150 0.6 )"},"name":"95% PI","y":[27750.3935053414,49161.8999420886,61959.199835366,57464.9490106121,50710.7598051391,29282.8085180473,13870.9635606425,6186.90394315195,3624.73978691895,2823.39056231992,3495.63173859023,11036.3387687717,29084.4991309006,49896.8750551156,62420.4583940772,57805.2509830719,50995.4933242352,29542.1552502075,14118.8262432383,6429.56255814726,3865.03826429062,3062.61828679987,3734.37360130103,11274.860151748,29322.4889597166,50134.8235851363,62657.0193796213,58042.2785676638,51232.863692957,29779.5788190481,14356.2742975574,6667.02179441711,4102.50258950598,3300.08492442975,3971.84128895691,11512.328316051,29559.5282530847,50371.8670906951,62892.7028524932,58278.4339378581,51469.3645685099,30016.1345240148,14592.8552490193,6903.61427765252,4339.10032136208,3536.68504135334,4208.44248891682,11748.9300076469,29795.7036258233,50608.046662032,63127.5294922791,58513.7284132318,51705.002919195,30251.8273790932,14828.5732271098,7139.34373643227,4574.83500660067,3772.4221018123,4444.18062798663,11984.6686363532,11984.6686363532,30866.6027207167,23326.1303764192,22654.4068096268,23456.8989004922,26021.5925691213,33711.2803175544,49135.7906012437,70592.9298876167,77417.1835792425,82091.9283749573,69495.779423873,48683.5773361371,30604.4707350911,23063.9979011571,22392.2732557538,23194.7629713989,25759.4514135692,33449.127681313,48873.6128419902,70330.6976239699,77154.6074402842,81828.8844004111,69234.0883808776,48421.8820945429,30343.2018123529,22802.7284867804,22131.0027583352,22933.4900889002,25498.1732824224,33187.8380183322,48612.2979323807,70069.3278846524,76892.8921949601,81566.6972563365,68973.2612663432,48161.0507608839,30082.7993343501,22542.3254984633,21870.5986458058,22673.0835004854,25237.7612448504,32927.4140050759,48351.847684638,69808.8205828165,76632.033616683,81305.3533660312,68713.2636860825,47901.0036185096,29823.0835322779,22282.3890008223,21610.1758711915,22411.5893512972,24973.9070119031,32658.3627360321,48071.3614218884,69503.218529611,76270.7165617182,80819.7775434946,67961.0674047429,46557.2942656287],"marker":{"color":"rgba(255,127,14,1)","line":{"color":"rgba(255,127,14,1)"}},"error_y":{"color":"rgba(255,127,14,1)"},"error_x":{"color":"rgba(255,127,14,1)"},"xaxis":"x","yaxis":"y","frame":null},{"fillcolor":"rgba( 150,150,150 0.8 )","x":["2019-11-01","2019-12-01","2020-01-01","2020-02-01","2020-03-01","2020-04-01","2020-05-01","2020-06-01","2020-07-01","2020-08-01","2020-09-01","2020-10-01","2020-11-01","2020-12-01","2021-01-01","2021-02-01","2021-03-01","2021-04-01","2021-05-01","2021-06-01","2021-07-01","2021-08-01","2021-09-01","2021-10-01","2021-11-01","2021-12-01","2022-01-01","2022-02-01","2022-03-01","2022-04-01","2022-05-01","2022-06-01","2022-07-01","2022-08-01","2022-09-01","2022-10-01","2022-11-01","2022-12-01","2023-01-01","2023-02-01","2023-03-01","2023-04-01","2023-05-01","2023-06-01","2023-07-01","2023-08-01","2023-09-01","2023-10-01","2023-11-01","2023-12-01","2024-01-01","2024-02-01","2024-03-01","2024-04-01","2024-05-01","2024-06-01","2024-07-01","2024-08-01","2024-09-01","2024-10-01","2024-10-01","2024-10-01","2024-09-01","2024-08-01","2024-07-01","2024-06-01","2024-05-01","2024-04-01","2024-03-01","2024-02-01","2024-01-01","2023-12-01","2023-11-01","2023-10-01","2023-09-01","2023-08-01","2023-07-01","2023-06-01","2023-05-01","2023-04-01","2023-03-01","2023-02-01","2023-01-01","2022-12-01","2022-11-01","2022-10-01","2022-09-01","2022-08-01","2022-07-01","2022-06-01","2022-05-01","2022-04-01","2022-03-01","2022-02-01","2022-01-01","2021-12-01","2021-11-01","2021-10-01","2021-09-01","2021-08-01","2021-07-01","2021-06-01","2021-05-01","2021-04-01","2021-03-01","2021-02-01","2021-01-01","2020-12-01","2020-11-01","2020-10-01","2020-09-01","2020-08-01","2020-07-01","2020-06-01","2020-05-01","2020-04-01","2020-03-01","2020-02-01","2020-01-01","2019-12-01","2019-11-01"],"type":"scatter","mode":"lines","hoveron":"points","fill":"toself","line":{"color":"rgba( 150,150,150 0.8 )"},"name":"80% PI","y":[31018.9767952309,52429.139207902,65237.1120187825,60733.3353521239,53976.8331122547,32548.2030051804,17136.1575332099,9452.02907356633,6889.8382387309,6088.47784671634,6760.71414856432,14301.4190065045,32354.7515199705,53167.1073086464,65702.5968454583,61077.2896832784,54265.1935203712,32811.2237247413,17387.7027289684,9698.37142377882,7133.82046068125,6331.38920772847,7003.13957564605,14543.6239163404,32596.5748441314,53408.887897872,65943.4650259735,61318.4590235341,54506.5850190984,33052.6492617339,17629.1439364608,9939.81978849404,7375.27208285116,6572.84231012063,7244.59335018808,14785.0779959986,32837.7491231794,53650.0649237732,66183.7547578946,61559.0566238335,54747.408029041,33293.5080426618,17870.0191883295,10180.70256375,7616.15828233378,6813.73006563334,7485.48181227915,15025.9667788354,33078.3597730519,53890.6783128362,66423.4854863476,61799.0925710131,54987.668322524,33533.803895136,18110.3314312065,10421.0222966971,7856.48142505379,7054.05475796128,7725.80720829924,15266.2924942973,15266.2924942973,27584.9788627726,20044.5037961066,19372.7741534778,20175.2524820391,22739.9140088565,30429.5221134577,45853.814085201,67310.2644842877,74131.8194214612,78795.9723808888,66213.1477730688,45400.9211889085,27327.4339639025,19786.9585777948,19115.2282314738,19917.7050104272,22482.3631274717,30171.9637420028,45596.2393233432,67052.6541634388,73873.9847543089,78537.8324950097,65955.8905477995,45143.6612244482,27070.4521324053,19529.9764255492,18858.2453726443,19660.7205955551,22225.3752883454,29914.9683794287,45339.2274896949,66795.606558511,73616.7117390898,78280.2516099843,65699.1969536075,44886.9648764691,26814.0355697577,19273.5595241183,18601.8277248772,19404.3013040948,21968.9523792189,29658.5375193458,45082.7792101042,66539.1203866804,73359.9949164765,78023.2149146501,65443.0314325516,44630.7512294397,26558.0032945451,19017.3065908482,18345.0885867951,19146.4908994853,21708.7818814888,29393.1687634648,44805.9669347554,66237.1452224953,73002.3302202063,77541.865360078,64693.8281389295,43288.7109757392],"marker":{"color":"rgba(44,160,44,1)","line":{"color":"rgba(44,160,44,1)"}},"error_y":{"color":"rgba(44,160,44,1)"},"error_x":{"color":"rgba(44,160,44,1)"},"xaxis":"x","yaxis":"y","frame":null},{"x":["2019-11-01","2019-12-01","2020-01-01","2020-02-01","2020-03-01","2020-04-01","2020-05-01","2020-06-01","2020-07-01","2020-08-01","2020-09-01","2020-10-01","2020-11-01","2020-12-01","2021-01-01","2021-02-01","2021-03-01","2021-04-01","2021-05-01","2021-06-01","2021-07-01","2021-08-01","2021-09-01","2021-10-01","2021-11-01","2021-12-01","2022-01-01","2022-02-01","2022-03-01","2022-04-01","2022-05-01","2022-06-01","2022-07-01","2022-08-01","2022-09-01","2022-10-01","2022-11-01","2022-12-01","2023-01-01","2023-02-01","2023-03-01","2023-04-01","2023-05-01","2023-06-01","2023-07-01","2023-08-01","2023-09-01","2023-10-01","2023-11-01","2023-12-01","2024-01-01","2024-02-01","2024-03-01","2024-04-01","2024-05-01","2024-06-01","2024-07-01","2024-08-01","2024-09-01","2024-10-01"],"y":[37153.8438854851,58561.4836734157,71389.4886894303,66867.8327861651,60106.989167375,38677.0849699679,23264.6631483373,15580.4054775275,13018.1645691081,12216.7832167557,12889.0103697063,20429.7111505248,38492.7513747051,59305.069370599,71862.9058800542,67218.6422998774,60402.1569535258,38947.0014674228,23523.1201241571,15833.6619014989,13269.060882388,12466.6084663028,13138.3495498822,20678.829743049,38741.7698603003,59554.0424257398,72111.8583179789,67467.5853813119,60651.0957888047,39195.9383757144,23772.0561579448,16082.5975384197,13517.9963392031,12715.5438413825,13387.2848878687,20927.765064202,38990.7051738138,59802.9777357864,72360.7936264521,67716.5206890712,60900.0310962399,39444.8736830025,24020.9914651662,16331.5328456108,13766.9316463805,12964.4791485536,13636.220195037,21176.700371369,39239.6404809802,60051.9130429525,72609.7289336182,67965.4559962372,61148.9664034059,39693.8089901685,24269.9267723321,16580.4681527768,14015.8669535464,13213.4144557195,13885.1555022029,21425.6356785349],"type":"scatter","mode":"lines","name":"Forecast","line":{"color":"#00526d","dash":"dash"},"marker":{"color":"rgba(214,39,40,1)","line":{"color":"rgba(214,39,40,1)"}},"error_y":{"color":"rgba(214,39,40,1)"},"error_x":{"color":"rgba(214,39,40,1)"},"xaxis":"x","yaxis":"y","frame":null}],"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.2,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}
The plot_fc
has six customized color themes. By default, the function will use the normal
theme (as the plot above), which is similar to the base R plot
function color theme (prediction intervals with shaded gray colors). In addition to the normal
theme, there are classic
, darkBlue
, darkPink
, darkGreen
, and lightBeige
themes. For example, we will change the theme to darkPink
with the theme
argument:
plot_fc(fc4, theme = "darkPink")
{"x":{"visdat":{"ab3f559e06f1":["function () ","plotlyVisDat"]},"cur_data":"ab3f559e06f1","attrs":{"ab3f559e06f1":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":{},"y":{},"type":"scatter","mode":"lines","line":{"color":"white"},"name":"Actual","inherit":true},"ab3f559e06f1.1":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":["2019-11-01","2019-12-01","2020-01-01","2020-02-01","2020-03-01","2020-04-01","2020-05-01","2020-06-01","2020-07-01","2020-08-01","2020-09-01","2020-10-01","2020-11-01","2020-12-01","2021-01-01","2021-02-01","2021-03-01","2021-04-01","2021-05-01","2021-06-01","2021-07-01","2021-08-01","2021-09-01","2021-10-01","2021-11-01","2021-12-01","2022-01-01","2022-02-01","2022-03-01","2022-04-01","2022-05-01","2022-06-01","2022-07-01","2022-08-01","2022-09-01","2022-10-01","2022-11-01","2022-12-01","2023-01-01","2023-02-01","2023-03-01","2023-04-01","2023-05-01","2023-06-01","2023-07-01","2023-08-01","2023-09-01","2023-10-01","2023-11-01","2023-12-01","2024-01-01","2024-02-01","2024-03-01","2024-04-01","2024-05-01","2024-06-01","2024-07-01","2024-08-01","2024-09-01","2024-10-01"],"ymin":[27750.3935053414,49161.8999420886,61959.199835366,57464.9490106121,50710.7598051391,29282.8085180473,13870.9635606425,6186.90394315195,3624.73978691895,2823.39056231992,3495.63173859023,11036.3387687717,29084.4991309006,49896.8750551156,62420.4583940772,57805.2509830719,50995.4933242352,29542.1552502075,14118.8262432383,6429.56255814726,3865.03826429062,3062.61828679987,3734.37360130103,11274.860151748,29322.4889597166,50134.8235851363,62657.0193796213,58042.2785676638,51232.863692957,29779.5788190481,14356.2742975574,6667.02179441711,4102.50258950598,3300.08492442975,3971.84128895691,11512.328316051,29559.5282530847,50371.8670906951,62892.7028524932,58278.4339378581,51469.3645685099,30016.1345240148,14592.8552490193,6903.61427765252,4339.10032136208,3536.68504135334,4208.44248891682,11748.9300076469,29795.7036258233,50608.046662032,63127.5294922791,58513.7284132318,51705.002919195,30251.8273790932,14828.5732271098,7139.34373643227,4574.83500660067,3772.4221018123,4444.18062798663,11984.6686363532],"ymax":[46557.2942656287,67961.0674047429,80819.7775434946,76270.7165617182,69503.218529611,48071.3614218884,32658.3627360321,24973.9070119031,22411.5893512972,21610.1758711915,22282.3890008223,29823.0835322779,47901.0036185096,68713.2636860825,81305.3533660312,76632.033616683,69808.8205828165,48351.847684638,32927.4140050759,25237.7612448504,22673.0835004854,21870.5986458058,22542.3254984633,30082.7993343501,48161.0507608839,68973.2612663432,81566.6972563365,76892.8921949601,70069.3278846524,48612.2979323807,33187.8380183322,25498.1732824224,22933.4900889002,22131.0027583352,22802.7284867804,30343.2018123529,48421.8820945429,69234.0883808776,81828.8844004111,77154.6074402842,70330.6976239699,48873.6128419902,33449.127681313,25759.4514135692,23194.7629713989,22392.2732557538,23063.9979011571,30604.4707350911,48683.5773361371,69495.779423873,82091.9283749573,77417.1835792425,70592.9298876167,49135.7906012437,33711.2803175544,26021.5925691213,23456.8989004922,22654.4068096268,23326.1303764192,30866.6027207167],"type":"scatter","mode":"lines","hoveron":"points","fill":"toself","line":{"color":"rgba( 227,119,194 0.6 )"},"fillcolor":"rgba( 227,119,194 0.6 )","name":"95% PI","inherit":true},"ab3f559e06f1.2":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":["2019-11-01","2019-12-01","2020-01-01","2020-02-01","2020-03-01","2020-04-01","2020-05-01","2020-06-01","2020-07-01","2020-08-01","2020-09-01","2020-10-01","2020-11-01","2020-12-01","2021-01-01","2021-02-01","2021-03-01","2021-04-01","2021-05-01","2021-06-01","2021-07-01","2021-08-01","2021-09-01","2021-10-01","2021-11-01","2021-12-01","2022-01-01","2022-02-01","2022-03-01","2022-04-01","2022-05-01","2022-06-01","2022-07-01","2022-08-01","2022-09-01","2022-10-01","2022-11-01","2022-12-01","2023-01-01","2023-02-01","2023-03-01","2023-04-01","2023-05-01","2023-06-01","2023-07-01","2023-08-01","2023-09-01","2023-10-01","2023-11-01","2023-12-01","2024-01-01","2024-02-01","2024-03-01","2024-04-01","2024-05-01","2024-06-01","2024-07-01","2024-08-01","2024-09-01","2024-10-01"],"ymin":[31018.9767952309,52429.139207902,65237.1120187825,60733.3353521239,53976.8331122547,32548.2030051804,17136.1575332099,9452.02907356633,6889.8382387309,6088.47784671634,6760.71414856432,14301.4190065045,32354.7515199705,53167.1073086464,65702.5968454583,61077.2896832784,54265.1935203712,32811.2237247413,17387.7027289684,9698.37142377882,7133.82046068125,6331.38920772847,7003.13957564605,14543.6239163404,32596.5748441314,53408.887897872,65943.4650259735,61318.4590235341,54506.5850190984,33052.6492617339,17629.1439364608,9939.81978849404,7375.27208285116,6572.84231012063,7244.59335018808,14785.0779959986,32837.7491231794,53650.0649237732,66183.7547578946,61559.0566238335,54747.408029041,33293.5080426618,17870.0191883295,10180.70256375,7616.15828233378,6813.73006563334,7485.48181227915,15025.9667788354,33078.3597730519,53890.6783128362,66423.4854863476,61799.0925710131,54987.668322524,33533.803895136,18110.3314312065,10421.0222966971,7856.48142505379,7054.05475796128,7725.80720829924,15266.2924942973],"ymax":[43288.7109757392,64693.8281389295,77541.865360078,73002.3302202063,66237.1452224953,44805.9669347554,29393.1687634648,21708.7818814888,19146.4908994853,18345.0885867951,19017.3065908482,26558.0032945451,44630.7512294397,65443.0314325516,78023.2149146501,73359.9949164765,66539.1203866804,45082.7792101042,29658.5375193458,21968.9523792189,19404.3013040948,18601.8277248772,19273.5595241183,26814.0355697577,44886.9648764691,65699.1969536075,78280.2516099843,73616.7117390898,66795.606558511,45339.2274896949,29914.9683794287,22225.3752883454,19660.7205955551,18858.2453726443,19529.9764255492,27070.4521324053,45143.6612244482,65955.8905477995,78537.8324950097,73873.9847543089,67052.6541634388,45596.2393233432,30171.9637420028,22482.3631274717,19917.7050104272,19115.2282314738,19786.9585777948,27327.4339639025,45400.9211889085,66213.1477730688,78795.9723808888,74131.8194214612,67310.2644842877,45853.814085201,30429.5221134577,22739.9140088565,20175.2524820391,19372.7741534778,20044.5037961066,27584.9788627726],"type":"scatter","mode":"lines","hoveron":"points","fill":"toself","line":{"color":"rgba( 227,119,194 0.8 )"},"fillcolor":"rgba( 227,119,194 0.8 )","name":"80% PI","inherit":true},"ab3f559e06f1.3":{"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"x":["2019-11-01","2019-12-01","2020-01-01","2020-02-01","2020-03-01","2020-04-01","2020-05-01","2020-06-01","2020-07-01","2020-08-01","2020-09-01","2020-10-01","2020-11-01","2020-12-01","2021-01-01","2021-02-01","2021-03-01","2021-04-01","2021-05-01","2021-06-01","2021-07-01","2021-08-01","2021-09-01","2021-10-01","2021-11-01","2021-12-01","2022-01-01","2022-02-01","2022-03-01","2022-04-01","2022-05-01","2022-06-01","2022-07-01","2022-08-01","2022-09-01","2022-10-01","2022-11-01","2022-12-01","2023-01-01","2023-02-01","2023-03-01","2023-04-01","2023-05-01","2023-06-01","2023-07-01","2023-08-01","2023-09-01","2023-10-01","2023-11-01","2023-12-01","2024-01-01","2024-02-01","2024-03-01","2024-04-01","2024-05-01","2024-06-01","2024-07-01","2024-08-01","2024-09-01","2024-10-01"],"y":[37153.8438854851,58561.4836734157,71389.4886894303,66867.8327861651,60106.989167375,38677.0849699679,23264.6631483373,15580.4054775275,13018.1645691081,12216.7832167557,12889.0103697063,20429.7111505248,38492.7513747051,59305.069370599,71862.9058800542,67218.6422998774,60402.1569535258,38947.0014674228,23523.1201241571,15833.6619014989,13269.060882388,12466.6084663028,13138.3495498822,20678.829743049,38741.7698603003,59554.0424257398,72111.8583179789,67467.5853813119,60651.0957888047,39195.9383757144,23772.0561579448,16082.5975384197,13517.9963392031,12715.5438413825,13387.2848878687,20927.765064202,38990.7051738138,59802.9777357864,72360.7936264521,67716.5206890712,60900.0310962399,39444.8736830025,24020.9914651662,16331.5328456108,13766.9316463805,12964.4791485536,13636.220195037,21176.700371369,39239.6404809802,60051.9130429525,72609.7289336182,67965.4559962372,61148.9664034059,39693.8089901685,24269.9267723321,16580.4681527768,14015.8669535464,13213.4144557195,13885.1555022029,21425.6356785349],"type":"scatter","mode":"lines","name":"Forecast","line":{"color":"white","dash":"dash"},"inherit":true}},"layout":{"margin":{"b":40,"l":60,"t":25,"r":10},"title":"y Forecast <br />Horizon - 60","paper_bgcolor":"black","plot_bgcolor":"black","font":{"color":"white"},"yaxis":{"domain":[0,1],"automargin":true,"title":"y","linecolor":"#6b6b6b","zerolinecolor":"#6b6b6b","gridcolor":"#444444"},"xaxis":{"domain":[0,1],"automargin":true,"title":"date","linecolor":"#6b6b6b","zerolinecolor":"#6b6b6b","gridcolor":"#444444"},"hovermode":"closest","showlegend":true},"source":"A","config":{"showSendToCloud":false},"data":[{"x":["1997-01-01","1997-02-01","1997-03-01","1997-04-01","1997-05-01","1997-06-01","1997-07-01","1997-08-01","1997-09-01","1997-10-01","1997-11-01","1997-12-01","1998-01-01","1998-02-01","1998-03-01","1998-04-01","1998-05-01","1998-06-01","1998-07-01","1998-08-01","1998-09-01","1998-10-01","1998-11-01","1998-12-01","1999-01-01","1999-02-01","1999-03-01","1999-04-01","1999-05-01","1999-06-01","1999-07-01","1999-08-01","1999-09-01","1999-10-01","1999-11-01","1999-12-01","2000-01-01","2000-02-01","2000-03-01","2000-04-01","2000-05-01","2000-06-01","2000-07-01","2000-08-01","2000-09-01","2000-10-01","2000-11-01","2000-12-01","2001-01-01","2001-02-01","2001-03-01","2001-04-01","2001-05-01","2001-06-01","2001-07-01","2001-08-01","2001-09-01","2001-10-01","2001-11-01","2001-12-01","2002-01-01","2002-02-01","2002-03-01","2002-04-01","2002-05-01","2002-06-01","2002-07-01","2002-08-01","2002-09-01","2002-10-01","2002-11-01","2002-12-01","2003-01-01","2003-02-01","2003-03-01","2003-04-01","2003-05-01","2003-06-01","2003-07-01","2003-08-01","2003-09-01","2003-10-01","2003-11-01","2003-12-01","2004-01-01","2004-02-01","2004-03-01","2004-04-01","2004-05-01","2004-06-01","2004-07-01","2004-08-01","2004-09-01","2004-10-01","2004-11-01","2004-12-01","2005-01-01","2005-02-01","2005-03-01","2005-04-01","2005-05-01","2005-06-01","2005-07-01","2005-08-01","2005-09-01","2005-10-01","2005-11-01","2005-12-01","2006-01-01","2006-02-01","2006-03-01","2006-04-01","2006-05-01","2006-06-01","2006-07-01","2006-08-01","2006-09-01","2006-10-01","2006-11-01","2006-12-01","2007-01-01","2007-02-01","2007-03-01","2007-04-01","2007-05-01","2007-06-01","2007-07-01","2007-08-01","2007-09-01","2007-10-01","2007-11-01","2007-12-01","2008-01-01","2008-02-01","2008-03-01","2008-04-01","2008-05-01","2008-06-01","2008-07-01","2008-08-01","2008-09-01","2008-10-01","2008-11-01","2008-12-01","2009-01-01","2009-02-01","2009-03-01","2009-04-01","2009-05-01","2009-06-01","2009-07-01","2009-08-01","2009-09-01","2009-10-01","2009-11-01","2009-12-01","2010-01-01","2010-02-01","2010-03-01","2010-04-01","2010-05-01","2010-06-01","2010-07-01","2010-08-01","2010-09-01","2010-10-01","2010-11-01","2010-12-01","2011-01-01","2011-02-01","2011-03-01","2011-04-01","2011-05-01","2011-06-01","2011-07-01","2011-08-01","2011-09-01","2011-10-01","2011-11-01","2011-12-01","2012-01-01","2012-02-01","2012-03-01","2012-04-01","2012-05-01","2012-06-01","2012-07-01","2012-08-01","2012-09-01","2012-10-01","2012-11-01","2012-12-01","2013-01-01","2013-02-01","2013-03-01","2013-04-01","2013-05-01","2013-06-01","2013-07-01","2013-08-01","2013-09-01","2013-10-01","2013-11-01","2013-12-01","2014-01-01","2014-02-01","2014-03-01","2014-04-01","2014-05-01","2014-06-01","2014-07-01","2014-08-01","2014-09-01","2014-10-01","2014-11-01","2014-12-01","2015-01-01","2015-02-01","2015-03-01","2015-04-01","2015-05-01","2015-06-01","2015-07-01","2015-08-01","2015-09-01","2015-10-01","2015-11-01","2015-12-01","2016-01-01","2016-02-01","2016-03-01","2016-04-01","2016-05-01","2016-06-01","2016-07-01","2016-08-01","2016-09-01","2016-10-01","2016-11-01","2016-12-01","2017-01-01","2017-02-01","2017-03-01","2017-04-01","2017-05-01","2017-06-01","2017-07-01","2017-08-01","2017-09-01","2017-10-01","2017-11-01","2017-12-01","2018-01-01","2018-02-01","2018-03-01","2018-04-01","2018-05-01","2018-06-01","2018-07-01","2018-08-01","2018-09-01","2018-10-01","2018-11-01","2018-12-01","2019-01-01","2019-02-01","2019-03-01","2019-04-01","2019-05-01","2019-06-01","2019-07-01","2019-08-01","2019-09-01","2019-10-01"],"y":[62019,56003,51213,37597,24082,14469,9719,10267,9878,17385,34936,48074,54949,51711,48382,32412,18810,12205,15342,8900,9546,15308,30010,41937,66611,57425,56954,35080,18880,14898,9890,8705,9962,17677,28487,46142,65819,66232,48138,37288,22525,14349,10847,10290,11087,18636,33940,61072,70467,60260,58547,37822,18799,13426,9813,9451,10188,16847,27651,42904,56754,51753,49309,34246,23432,13856,9740,9113,9332,17278,36764,58038,68215,73655,61494,42067,25774,14955,10049,8722,9456,17149,28397,49716,68793,70343,54933,40627,22876,13061,9913,9358,9587,15734,29113,48400,66148,68368,65007,41926,26332,14675,10303,9527,9247,14360,27186,53098,57895,59815,55702,33443,18971,12339,9517,8311,9353,18626,30329,42153,57091,71739,60533,41630,20828,11861,9467,10072,9222,12674,35026,60115,64081,63546,57550,34451,20321,12552,9373,8987,10092,18790,36074,58380,77147,65066,56360,37184,18648,12235,9666,9683,10280,20411,30620,57567,71232,64645,47703,26907,17563,10723,8767,8236,9952,17571,37152,70039,77802,65821,56516,34243,16760,11118,8975,9712,9447,19250,32448,51732,65236,57566,37978,26544,15280,10722,9079,8776,9971,17856,43467,55236,68908,65792,60057,33232,17596,11134,9459,9185,11223,16594,44459,68718,79952,74901,70836,38643,26165,12363,10686,9683,11117,16260,45075,62632,89006,91107,74731,36470,18251,13069,10330,10144,10202,20674,33880,44302,74579,66686,47537,36910,22097,12799,10775,9267,9380,18301,37991,66144,72971,60363,68073,30910,20619,13858,10732,10217,10956,15457,42671,75737,91695,64908,68622,48644,19184,12523,11062,9912,10718,23307,55996,69121,89963,73087,71056,34790,22559,12623,10340,9858,10405,17779],"type":"scatter","mode":"lines","line":{"color":"white"},"name":"Actual","marker":{"color":"rgba(31,119,180,1)","line":{"color":"rgba(31,119,180,1)"}},"error_y":{"color":"rgba(31,119,180,1)"},"error_x":{"color":"rgba(31,119,180,1)"},"xaxis":"x","yaxis":"y","frame":null},{"fillcolor":"rgba( 227,119,194 0.6 )","x":["2019-11-01","2019-12-01","2020-01-01","2020-02-01","2020-03-01","2020-04-01","2020-05-01","2020-06-01","2020-07-01","2020-08-01","2020-09-01","2020-10-01","2020-11-01","2020-12-01","2021-01-01","2021-02-01","2021-03-01","2021-04-01","2021-05-01","2021-06-01","2021-07-01","2021-08-01","2021-09-01","2021-10-01","2021-11-01","2021-12-01","2022-01-01","2022-02-01","2022-03-01","2022-04-01","2022-05-01","2022-06-01","2022-07-01","2022-08-01","2022-09-01","2022-10-01","2022-11-01","2022-12-01","2023-01-01","2023-02-01","2023-03-01","2023-04-01","2023-05-01","2023-06-01","2023-07-01","2023-08-01","2023-09-01","2023-10-01","2023-11-01","2023-12-01","2024-01-01","2024-02-01","2024-03-01","2024-04-01","2024-05-01","2024-06-01","2024-07-01","2024-08-01","2024-09-01","2024-10-01","2024-10-01","2024-10-01","2024-09-01","2024-08-01","2024-07-01","2024-06-01","2024-05-01","2024-04-01","2024-03-01","2024-02-01","2024-01-01","2023-12-01","2023-11-01","2023-10-01","2023-09-01","2023-08-01","2023-07-01","2023-06-01","2023-05-01","2023-04-01","2023-03-01","2023-02-01","2023-01-01","2022-12-01","2022-11-01","2022-10-01","2022-09-01","2022-08-01","2022-07-01","2022-06-01","2022-05-01","2022-04-01","2022-03-01","2022-02-01","2022-01-01","2021-12-01","2021-11-01","2021-10-01","2021-09-01","2021-08-01","2021-07-01","2021-06-01","2021-05-01","2021-04-01","2021-03-01","2021-02-01","2021-01-01","2020-12-01","2020-11-01","2020-10-01","2020-09-01","2020-08-01","2020-07-01","2020-06-01","2020-05-01","2020-04-01","2020-03-01","2020-02-01","2020-01-01","2019-12-01","2019-11-01"],"type":"scatter","mode":"lines","hoveron":"points","fill":"toself","line":{"color":"rgba( 227,119,194 0.6 )"},"name":"95% PI","y":[27750.3935053414,49161.8999420886,61959.199835366,57464.9490106121,50710.7598051391,29282.8085180473,13870.9635606425,6186.90394315195,3624.73978691895,2823.39056231992,3495.63173859023,11036.3387687717,29084.4991309006,49896.8750551156,62420.4583940772,57805.2509830719,50995.4933242352,29542.1552502075,14118.8262432383,6429.56255814726,3865.03826429062,3062.61828679987,3734.37360130103,11274.860151748,29322.4889597166,50134.8235851363,62657.0193796213,58042.2785676638,51232.863692957,29779.5788190481,14356.2742975574,6667.02179441711,4102.50258950598,3300.08492442975,3971.84128895691,11512.328316051,29559.5282530847,50371.8670906951,62892.7028524932,58278.4339378581,51469.3645685099,30016.1345240148,14592.8552490193,6903.61427765252,4339.10032136208,3536.68504135334,4208.44248891682,11748.9300076469,29795.7036258233,50608.046662032,63127.5294922791,58513.7284132318,51705.002919195,30251.8273790932,14828.5732271098,7139.34373643227,4574.83500660067,3772.4221018123,4444.18062798663,11984.6686363532,11984.6686363532,30866.6027207167,23326.1303764192,22654.4068096268,23456.8989004922,26021.5925691213,33711.2803175544,49135.7906012437,70592.9298876167,77417.1835792425,82091.9283749573,69495.779423873,48683.5773361371,30604.4707350911,23063.9979011571,22392.2732557538,23194.7629713989,25759.4514135692,33449.127681313,48873.6128419902,70330.6976239699,77154.6074402842,81828.8844004111,69234.0883808776,48421.8820945429,30343.2018123529,22802.7284867804,22131.0027583352,22933.4900889002,25498.1732824224,33187.8380183322,48612.2979323807,70069.3278846524,76892.8921949601,81566.6972563365,68973.2612663432,48161.0507608839,30082.7993343501,22542.3254984633,21870.5986458058,22673.0835004854,25237.7612448504,32927.4140050759,48351.847684638,69808.8205828165,76632.033616683,81305.3533660312,68713.2636860825,47901.0036185096,29823.0835322779,22282.3890008223,21610.1758711915,22411.5893512972,24973.9070119031,32658.3627360321,48071.3614218884,69503.218529611,76270.7165617182,80819.7775434946,67961.0674047429,46557.2942656287],"marker":{"color":"rgba(255,127,14,1)","line":{"color":"rgba(255,127,14,1)"}},"error_y":{"color":"rgba(255,127,14,1)"},"error_x":{"color":"rgba(255,127,14,1)"},"xaxis":"x","yaxis":"y","frame":null},{"fillcolor":"rgba( 227,119,194 0.8 )","x":["2019-11-01","2019-12-01","2020-01-01","2020-02-01","2020-03-01","2020-04-01","2020-05-01","2020-06-01","2020-07-01","2020-08-01","2020-09-01","2020-10-01","2020-11-01","2020-12-01","2021-01-01","2021-02-01","2021-03-01","2021-04-01","2021-05-01","2021-06-01","2021-07-01","2021-08-01","2021-09-01","2021-10-01","2021-11-01","2021-12-01","2022-01-01","2022-02-01","2022-03-01","2022-04-01","2022-05-01","2022-06-01","2022-07-01","2022-08-01","2022-09-01","2022-10-01","2022-11-01","2022-12-01","2023-01-01","2023-02-01","2023-03-01","2023-04-01","2023-05-01","2023-06-01","2023-07-01","2023-08-01","2023-09-01","2023-10-01","2023-11-01","2023-12-01","2024-01-01","2024-02-01","2024-03-01","2024-04-01","2024-05-01","2024-06-01","2024-07-01","2024-08-01","2024-09-01","2024-10-01","2024-10-01","2024-10-01","2024-09-01","2024-08-01","2024-07-01","2024-06-01","2024-05-01","2024-04-01","2024-03-01","2024-02-01","2024-01-01","2023-12-01","2023-11-01","2023-10-01","2023-09-01","2023-08-01","2023-07-01","2023-06-01","2023-05-01","2023-04-01","2023-03-01","2023-02-01","2023-01-01","2022-12-01","2022-11-01","2022-10-01","2022-09-01","2022-08-01","2022-07-01","2022-06-01","2022-05-01","2022-04-01","2022-03-01","2022-02-01","2022-01-01","2021-12-01","2021-11-01","2021-10-01","2021-09-01","2021-08-01","2021-07-01","2021-06-01","2021-05-01","2021-04-01","2021-03-01","2021-02-01","2021-01-01","2020-12-01","2020-11-01","2020-10-01","2020-09-01","2020-08-01","2020-07-01","2020-06-01","2020-05-01","2020-04-01","2020-03-01","2020-02-01","2020-01-01","2019-12-01","2019-11-01"],"type":"scatter","mode":"lines","hoveron":"points","fill":"toself","line":{"color":"rgba( 227,119,194 0.8 )"},"name":"80% PI","y":[31018.9767952309,52429.139207902,65237.1120187825,60733.3353521239,53976.8331122547,32548.2030051804,17136.1575332099,9452.02907356633,6889.8382387309,6088.47784671634,6760.71414856432,14301.4190065045,32354.7515199705,53167.1073086464,65702.5968454583,61077.2896832784,54265.1935203712,32811.2237247413,17387.7027289684,9698.37142377882,7133.82046068125,6331.38920772847,7003.13957564605,14543.6239163404,32596.5748441314,53408.887897872,65943.4650259735,61318.4590235341,54506.5850190984,33052.6492617339,17629.1439364608,9939.81978849404,7375.27208285116,6572.84231012063,7244.59335018808,14785.0779959986,32837.7491231794,53650.0649237732,66183.7547578946,61559.0566238335,54747.408029041,33293.5080426618,17870.0191883295,10180.70256375,7616.15828233378,6813.73006563334,7485.48181227915,15025.9667788354,33078.3597730519,53890.6783128362,66423.4854863476,61799.0925710131,54987.668322524,33533.803895136,18110.3314312065,10421.0222966971,7856.48142505379,7054.05475796128,7725.80720829924,15266.2924942973,15266.2924942973,27584.9788627726,20044.5037961066,19372.7741534778,20175.2524820391,22739.9140088565,30429.5221134577,45853.814085201,67310.2644842877,74131.8194214612,78795.9723808888,66213.1477730688,45400.9211889085,27327.4339639025,19786.9585777948,19115.2282314738,19917.7050104272,22482.3631274717,30171.9637420028,45596.2393233432,67052.6541634388,73873.9847543089,78537.8324950097,65955.8905477995,45143.6612244482,27070.4521324053,19529.9764255492,18858.2453726443,19660.7205955551,22225.3752883454,29914.9683794287,45339.2274896949,66795.606558511,73616.7117390898,78280.2516099843,65699.1969536075,44886.9648764691,26814.0355697577,19273.5595241183,18601.8277248772,19404.3013040948,21968.9523792189,29658.5375193458,45082.7792101042,66539.1203866804,73359.9949164765,78023.2149146501,65443.0314325516,44630.7512294397,26558.0032945451,19017.3065908482,18345.0885867951,19146.4908994853,21708.7818814888,29393.1687634648,44805.9669347554,66237.1452224953,73002.3302202063,77541.865360078,64693.8281389295,43288.7109757392],"marker":{"color":"rgba(44,160,44,1)","line":{"color":"rgba(44,160,44,1)"}},"error_y":{"color":"rgba(44,160,44,1)"},"error_x":{"color":"rgba(44,160,44,1)"},"xaxis":"x","yaxis":"y","frame":null},{"x":["2019-11-01","2019-12-01","2020-01-01","2020-02-01","2020-03-01","2020-04-01","2020-05-01","2020-06-01","2020-07-01","2020-08-01","2020-09-01","2020-10-01","2020-11-01","2020-12-01","2021-01-01","2021-02-01","2021-03-01","2021-04-01","2021-05-01","2021-06-01","2021-07-01","2021-08-01","2021-09-01","2021-10-01","2021-11-01","2021-12-01","2022-01-01","2022-02-01","2022-03-01","2022-04-01","2022-05-01","2022-06-01","2022-07-01","2022-08-01","2022-09-01","2022-10-01","2022-11-01","2022-12-01","2023-01-01","2023-02-01","2023-03-01","2023-04-01","2023-05-01","2023-06-01","2023-07-01","2023-08-01","2023-09-01","2023-10-01","2023-11-01","2023-12-01","2024-01-01","2024-02-01","2024-03-01","2024-04-01","2024-05-01","2024-06-01","2024-07-01","2024-08-01","2024-09-01","2024-10-01"],"y":[37153.8438854851,58561.4836734157,71389.4886894303,66867.8327861651,60106.989167375,38677.0849699679,23264.6631483373,15580.4054775275,13018.1645691081,12216.7832167557,12889.0103697063,20429.7111505248,38492.7513747051,59305.069370599,71862.9058800542,67218.6422998774,60402.1569535258,38947.0014674228,23523.1201241571,15833.6619014989,13269.060882388,12466.6084663028,13138.3495498822,20678.829743049,38741.7698603003,59554.0424257398,72111.8583179789,67467.5853813119,60651.0957888047,39195.9383757144,23772.0561579448,16082.5975384197,13517.9963392031,12715.5438413825,13387.2848878687,20927.765064202,38990.7051738138,59802.9777357864,72360.7936264521,67716.5206890712,60900.0310962399,39444.8736830025,24020.9914651662,16331.5328456108,13766.9316463805,12964.4791485536,13636.220195037,21176.700371369,39239.6404809802,60051.9130429525,72609.7289336182,67965.4559962372,61148.9664034059,39693.8089901685,24269.9267723321,16580.4681527768,14015.8669535464,13213.4144557195,13885.1555022029,21425.6356785349],"type":"scatter","mode":"lines","name":"Forecast","line":{"color":"white","dash":"dash"},"marker":{"color":"rgba(214,39,40,1)","line":{"color":"rgba(214,39,40,1)"}},"error_y":{"color":"rgba(214,39,40,1)"},"error_x":{"color":"rgba(214,39,40,1)"},"xaxis":"x","yaxis":"y","frame":null}],"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.2,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}
Last but not leaset, the package is on an early experimental lifecycle, and some issues may occur while using. If you identify any issue, please submit it over here: https://github.com/RamiKrispin/forecastLM/issues
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.