mdl_df [1 × 2] (S3: mdl_df/tbl_df/tbl/data.frame)
$ additive : lst_mdl [1:1]
..$ :List of 5
.. ..$ fit :List of 2
.. .. ..$ e1:List of 5
.. .. .. ..$ fit :List of 5
.. .. .. .. ..$ par : tibble [5 × 2] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ term : chr [1:5] "alpha" "beta" "phi" "l" ...
.. .. .. .. .. ..$ estimate: num [1:5] 1 0.763 0.8 77.372 0.775
.. .. .. .. ..$ est : tbl_ts [432 × 4] (S3: tbl_ts/tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ Month : mth [1:432] 1980 Jan, 1980 Feb, 1980 Mar, 1980 Apr, ...
.. .. .. .. .. ..$ season_adjust: num [1:432] 78.2 79.2 80.3 81.1 81.9 ...
.. .. .. .. .. ..$ .fitted : num [1:432] 78 78.8 79.9 81.2 81.7 ...
.. .. .. .. .. ..$ .resid : num [1:432] 0.193 0.3714 0.437 -0.0726 0.146 ...
.. .. .. .. .. ..- attr(*, "key")= tibble [1 × 1] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. .. ..$ .rows: list<int> [1:1]
.. .. .. .. .. .. .. ..$ : int [1:432] 1 2 3 4 5 6 7 8 9 10 ...
.. .. .. .. .. .. .. ..@ ptype: int(0)
.. .. .. .. .. ..- attr(*, "index")= chr "Month"
.. .. .. .. .. .. ..- attr(*, "ordered")= logi TRUE
.. .. .. .. .. ..- attr(*, "index2")= chr "Month"
.. .. .. .. .. ..- attr(*, "interval")= interval [1:1] 1M
.. .. .. .. .. .. ..@ .regular: logi TRUE
.. .. .. .. ..$ fit : tibble [1 × 8] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ sigma2 : num 0.21
.. .. .. .. .. ..$ log_lik: num -971
.. .. .. .. .. ..$ AIC : num 1954
.. .. .. .. .. ..$ AICc : num 1954
.. .. .. .. .. ..$ BIC : num 1979
.. .. .. .. .. ..$ MSE : num 0.207
.. .. .. .. .. ..$ AMSE : num 0.878
.. .. .. .. .. ..$ MAE : num 0.308
.. .. .. .. ..$ states: tbl_ts [433 × 3] (S3: tbl_ts/tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ Month: mth [1:433] 1979 Dec, 1980 Jan, 1980 Feb, 1980 Mar, ...
.. .. .. .. .. ..$ l : num [1:433] 77.4 78.2 79.2 80.3 81.1 ...
.. .. .. .. .. ..$ b : num [1:433] 0.775 0.767 0.897 1.051 0.786 ...
.. .. .. .. .. ..- attr(*, "key")= tibble [1 × 1] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. .. ..$ .rows: list<int> [1:1]
.. .. .. .. .. .. .. ..$ : int [1:433] 1 2 3 4 5 6 7 8 9 10 ...
.. .. .. .. .. .. .. ..@ ptype: int(0)
.. .. .. .. .. ..- attr(*, "index")= chr "Month"
.. .. .. .. .. .. ..- attr(*, "ordered")= logi TRUE
.. .. .. .. .. ..- attr(*, "index2")= chr "Month"
.. .. .. .. .. ..- attr(*, "interval")= interval [1:1] 1M
.. .. .. .. .. .. ..@ .regular: logi TRUE
.. .. .. .. ..$ spec : tibble [1 × 5] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ errortype : chr "A"
.. .. .. .. .. ..$ trendtype : chr "A"
.. .. .. .. .. ..$ seasontype: chr "N"
.. .. .. .. .. ..$ damped : logi TRUE
.. .. .. .. .. ..$ period : num 12
.. .. .. .. .. ..- attr(*, "out.attrs")=List of 2
.. .. .. .. .. .. ..$ dim : Named int [1:3] 1 1 1
.. .. .. .. .. .. .. ..- attr(*, "names")= chr [1:3] "errortype" "trendtype" "seasontype"
.. .. .. .. .. .. ..$ dimnames:List of 3
.. .. .. .. .. .. .. ..$ errortype : chr "errortype=A"
.. .. .. .. .. .. .. ..$ trendtype : chr "trendtype=Ad"
.. .. .. .. .. .. .. ..$ seasontype: chr "seasontype=N"
.. .. .. .. ..- attr(*, "class")= chr "ETS"
.. .. .. ..$ model :Classes 'mdl_defn', 'R6' <mdl_defn>
Public:
add_data: function (.data)
check: function (.data)
clone: function (deep = FALSE)
data: NULL
env: environment
extra: list
formula: formula
initialize: function (formula, ..., .env)
model: ETS
origin: 1980 Jan
prepare: function (...)
print: function (...)
recall_lag: function (x, n = 1L, ...)
recent_data: NULL
remove_data: function ()
specials: environment
stage: NULL
train: function (.data, specials, opt_crit, nmse, bounds, ic, restrict = TRUE,
.. .. .. ..$ data : tbl_ts [432 × 2] (S3: tbl_ts/tbl_df/tbl/data.frame)
.. .. .. .. ..$ Month : mth [1:432] 1980 Jan, 1980 Feb, 1980 Mar, 1980 Apr, 198...
.. .. .. .. ..$ season_adjust: num [1:432] 78.2 79.2 80.3 81.1 81.9 ...
.. .. .. .. ..- attr(*, "key")= tibble [1 × 1] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ .rows: list<int> [1:1]
.. .. .. .. .. .. ..$ : int [1:432] 1 2 3 4 5 6 7 8 9 10 ...
.. .. .. .. .. .. ..@ ptype: int(0)
.. .. .. .. ..- attr(*, "index")= chr "Month"
.. .. .. .. .. ..- attr(*, "ordered")= logi TRUE
.. .. .. .. ..- attr(*, "index2")= chr "Month"
.. .. .. .. ..- attr(*, "interval")= interval [1:1] 1M
.. .. .. .. .. ..@ .regular: logi TRUE
.. .. .. ..$ response :List of 1
.. .. .. .. ..$ : symbol season_adjust
.. .. .. ..$ transformation:List of 1
.. .. .. .. ..$ :function (season_adjust)
.. .. .. .. .. ..- attr(*, "class")= chr "transformation"
.. .. .. .. .. ..- attr(*, "inverse")=function (season_adjust)
.. .. .. ..- attr(*, "class")= chr "mdl_ts"
.. .. ..$ e2:List of 5
.. .. .. ..$ fit :List of 8
.. .. .. .. ..$ b : num(0)
.. .. .. .. ..$ b.se : num(0)
.. .. .. .. ..$ lag : num 12
.. .. .. .. ..$ sigma2 : num 0
.. .. .. .. ..$ .fitted: num [1:432] NA NA NA NA NA NA NA NA NA NA ...
.. .. .. .. ..$ .resid : num [1:432] NA NA NA NA NA NA NA NA NA NA ...
.. .. .. .. ..$ time :List of 2
.. .. .. .. .. ..$ start : mth [1:1] 1980 Jan
.. .. .. .. .. ..$ interval: interval [1:1] 1M
.. .. .. .. .. .. ..@ .regular: logi TRUE
.. .. .. .. ..$ future : num [1:12] -0.185 -0.17 -0.225 -0.193 -0.168 ...
.. .. .. .. ..- attr(*, "class")= chr "RW"
.. .. .. ..$ model :Classes 'mdl_defn', 'R6' <mdl_defn>
Public:
add_data: function (.data)
check: function (.data)
clone: function (deep = FALSE)
data: NULL
env: environment
extra: list
formula: formula
initialize: function (formula, ..., .env)
model: RW
origin: 1980 Jan
prepare: function (...)
print: function (...)
recall_lag: function (x, n = 1L, ...)
recent_data: NULL
remove_data: function ()
specials: environment
stage: NULL
train: function (.data, specials, ...)
.. .. .. ..$ data : tbl_ts [432 × 2] (S3: tbl_ts/tbl_df/tbl/data.frame)
.. .. .. .. ..$ Month : mth [1:432] 1980 Jan, 1980 Feb, 1980 Mar, 1980 Apr, 198...
.. .. .. .. ..$ season_year: num [1:432] -0.185 -0.17 -0.225 -0.193 -0.168 ...
.. .. .. .. ..- attr(*, "key")= tibble [1 × 1] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ .rows: list<int> [1:1]
.. .. .. .. .. .. ..$ : int [1:432] 1 2 3 4 5 6 7 8 9 10 ...
.. .. .. .. .. .. ..@ ptype: int(0)
.. .. .. .. ..- attr(*, "index")= chr "Month"
.. .. .. .. .. ..- attr(*, "ordered")= logi TRUE
.. .. .. .. ..- attr(*, "index2")= chr "Month"
.. .. .. .. ..- attr(*, "interval")= interval [1:1] 1M
.. .. .. .. .. ..@ .regular: logi TRUE
.. .. .. ..$ response :List of 1
.. .. .. .. ..$ : symbol season_year
.. .. .. ..$ transformation:List of 1
.. .. .. .. ..$ :function (season_year)
.. .. .. .. .. ..- attr(*, "class")= chr "transformation"
.. .. .. .. .. ..- attr(*, "inverse")=function (season_year)
.. .. .. ..- attr(*, "class")= chr "mdl_ts"
.. .. ..- attr(*, "combination")= language e1 + e2
.. .. ..- attr(*, "class")= chr [1:2] "decomposition_model" "model_combination"
.. .. ..- attr(*, "dcmp_method")= chr "STL"
.. ..$ model :Classes 'mdl_defn', 'R6' <mdl_defn>
Public:
add_data: function (.data)
check: function (.data)
clone: function (deep = FALSE)
data: NULL
env: environment
extra: list
formula: formula
initialize: function (formula, ..., .env)
model: dcmp_mdl
origin: 1980 Jan
prepare: function (...)
print: function (...)
recall_lag: function (x, n = 1L, ...)
recent_data: NULL
remove_data: function ()
specials: environment
stage: NULL
train: function (.data, specials, ..., dcmp)
.. ..$ data : tbl_ts [432 × 2] (S3: tbl_ts/tbl_df/tbl/data.frame)
.. .. ..$ Month: mth [1:432] 1980 Jan, 1980 Feb, 1980 Mar, 1980 Apr, 1980 May,...
.. .. ..$ value: num [1:432] 78 79 80.1 80.9 81.7 82.5 82.6 83.2 83.9 84.7 ...
.. .. ..- attr(*, "key")= tibble [1 × 1] (S3: tbl_df/tbl/data.frame)
.. .. .. ..$ .rows:List of 1
.. .. .. .. ..$ : int [1:432] 1 2 3 4 5 6 7 8 9 10 ...
.. .. ..- attr(*, "index")= chr "Month"
.. .. .. ..- attr(*, "ordered")= logi TRUE
.. .. ..- attr(*, "index2")= chr "Month"
.. .. ..- attr(*, "interval")= interval [1:1] 1M
.. .. .. ..@ .regular: logi TRUE
.. ..$ response :List of 1
.. .. ..$ : symbol value
.. ..$ transformation:List of 1
.. .. ..$ :function (value)
.. .. .. ..- attr(*, "class")= chr "transformation"
.. .. .. ..- attr(*, "inverse")=function (value)
.. ..- attr(*, "class")= chr "mdl_ts"
$ multiplicative: lst_mdl [1:1]
..$ :List of 5
.. ..$ fit :List of 2
.. .. ..$ e1:List of 5
.. .. .. ..$ fit :List of 5
.. .. .. .. ..$ par : tibble [5 × 2] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ term : chr [1:5] "alpha" "beta" "phi" "l" ...
.. .. .. .. .. ..$ estimate: num [1:5] 0.9999 0.6787 0.8334 4.3424 0.0185
.. .. .. .. ..$ est : tbl_ts [432 × 4] (S3: tbl_ts/tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ Month : mth [1:432] 1980 Jan, 1980 Feb, 1980 Mar, 1980 Apr, ...
.. .. .. .. .. ..$ season_adjust: num [1:432] 4.36 4.37 4.38 4.39 4.4 ...
.. .. .. .. .. ..$ .fitted : num [1:432] 4.36 4.37 4.38 4.4 4.4 ...
.. .. .. .. .. ..$ .resid : num [1:432] -5.65e-06 -1.29e-05 8.33e-04 -2.82e-04 2.79e-04 ...
.. .. .. .. .. ..- attr(*, "key")= tibble [1 × 1] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. .. ..$ .rows: list<int> [1:1]
.. .. .. .. .. .. .. ..$ : int [1:432] 1 2 3 4 5 6 7 8 9 10 ...
.. .. .. .. .. .. .. ..@ ptype: int(0)
.. .. .. .. .. ..- attr(*, "index")= chr "Month"
.. .. .. .. .. .. ..- attr(*, "ordered")= logi TRUE
.. .. .. .. .. ..- attr(*, "index2")= chr "Month"
.. .. .. .. .. ..- attr(*, "interval")= interval [1:1] 1M
.. .. .. .. .. .. ..@ .regular: logi TRUE
.. .. .. .. ..$ fit : tibble [1 × 8] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ sigma2 : num 2.55e-07
.. .. .. .. .. ..$ log_lik: num 1273
.. .. .. .. .. ..$ AIC : num -2533
.. .. .. .. .. ..$ AICc : num -2533
.. .. .. .. .. ..$ BIC : num -2509
.. .. .. .. .. ..$ MSE : num 6.48e-06
.. .. .. .. .. ..$ AMSE : num 2.67e-05
.. .. .. .. .. ..$ MAE : num 0.000365
.. .. .. .. ..$ states: tbl_ts [433 × 3] (S3: tbl_ts/tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ Month: mth [1:433] 1979 Dec, 1980 Jan, 1980 Feb, 1980 Mar, ...
.. .. .. .. .. ..$ l : num [1:433] 4.34 4.36 4.37 4.38 4.39 ...
.. .. .. .. .. ..$ b : num [1:433] 0.0185 0.0154 0.0128 0.0131 0.0101 ...
.. .. .. .. .. ..- attr(*, "key")= tibble [1 × 1] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. .. ..$ .rows: list<int> [1:1]
.. .. .. .. .. .. .. ..$ : int [1:433] 1 2 3 4 5 6 7 8 9 10 ...
.. .. .. .. .. .. .. ..@ ptype: int(0)
.. .. .. .. .. ..- attr(*, "index")= chr "Month"
.. .. .. .. .. .. ..- attr(*, "ordered")= logi TRUE
.. .. .. .. .. ..- attr(*, "index2")= chr "Month"
.. .. .. .. .. ..- attr(*, "interval")= interval [1:1] 1M
.. .. .. .. .. .. ..@ .regular: logi TRUE
.. .. .. .. ..$ spec : tibble [1 × 5] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ errortype : chr "M"
.. .. .. .. .. ..$ trendtype : chr "A"
.. .. .. .. .. ..$ seasontype: chr "N"
.. .. .. .. .. ..$ damped : logi TRUE
.. .. .. .. .. ..$ period : num 12
.. .. .. .. .. ..- attr(*, "out.attrs")=List of 2
.. .. .. .. .. .. ..$ dim : Named int [1:3] 2 3 3
.. .. .. .. .. .. .. ..- attr(*, "names")= chr [1:3] "errortype" "trendtype" "seasontype"
.. .. .. .. .. .. ..$ dimnames:List of 3
.. .. .. .. .. .. .. ..$ errortype : chr [1:2] "errortype=A" "errortype=M"
.. .. .. .. .. .. .. ..$ trendtype : chr [1:3] "trendtype=N" "trendtype=A" "trendtype=Ad"
.. .. .. .. .. .. .. ..$ seasontype: chr [1:3] "seasontype=N" "seasontype=A" "seasontype=M"
.. .. .. .. ..- attr(*, "class")= chr "ETS"
.. .. .. ..$ model :Classes 'mdl_defn', 'R6' <mdl_defn>
Public:
add_data: function (.data)
check: function (.data)
clone: function (deep = FALSE)
data: NULL
env: environment
extra: list
formula: name
initialize: function (formula, ..., .env)
model: ETS
origin: 1980 Jan
prepare: function (...)
print: function (...)
recall_lag: function (x, n = 1L, ...)
recent_data: NULL
remove_data: function ()
specials: environment
stage: NULL
train: function (.data, specials, opt_crit, nmse, bounds, ic, restrict = TRUE,
.. .. .. ..$ data : tbl_ts [432 × 2] (S3: tbl_ts/tbl_df/tbl/data.frame)
.. .. .. .. ..$ Month : mth [1:432] 1980 Jan, 1980 Feb, 1980 Mar, 1980 Apr, 198...
.. .. .. .. ..$ season_adjust: num [1:432] 4.36 4.37 4.38 4.39 4.4 ...
.. .. .. .. ..- attr(*, "key")= tibble [1 × 1] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ .rows: list<int> [1:1]
.. .. .. .. .. .. ..$ : int [1:432] 1 2 3 4 5 6 7 8 9 10 ...
.. .. .. .. .. .. ..@ ptype: int(0)
.. .. .. .. ..- attr(*, "index")= chr "Month"
.. .. .. .. .. ..- attr(*, "ordered")= logi TRUE
.. .. .. .. ..- attr(*, "index2")= chr "Month"
.. .. .. .. ..- attr(*, "interval")= interval [1:1] 1M
.. .. .. .. .. ..@ .regular: logi TRUE
.. .. .. ..$ response :List of 1
.. .. .. .. ..$ : symbol season_adjust
.. .. .. ..$ transformation:List of 1
.. .. .. .. ..$ :function (season_adjust)
.. .. .. .. .. ..- attr(*, "class")= chr "transformation"
.. .. .. .. .. ..- attr(*, "inverse")=function (season_adjust)
.. .. .. ..- attr(*, "class")= chr "mdl_ts"
.. .. ..$ e2:List of 5
.. .. .. ..$ fit :List of 8
.. .. .. .. ..$ b : num(0)
.. .. .. .. ..$ b.se : num(0)
.. .. .. .. ..$ lag : num 12
.. .. .. .. ..$ sigma2 : num 0
.. .. .. .. ..$ .fitted: num [1:432] NA NA NA NA NA NA NA NA NA NA ...
.. .. .. .. ..$ .resid : num [1:432] NA NA NA NA NA NA NA NA NA NA ...
.. .. .. .. ..$ time :List of 2
.. .. .. .. .. ..$ start : mth [1:1] 1980 Jan
.. .. .. .. .. ..$ interval: interval [1:1] 1M
.. .. .. .. .. .. ..@ .regular: logi TRUE
.. .. .. .. ..$ future : num [1:12] -0.00104 -0.00107 -0.00154 -0.0013 -0.0011 ...
.. .. .. .. ..- attr(*, "class")= chr "RW"
.. .. .. ..$ model :Classes 'mdl_defn', 'R6' <mdl_defn>
Public:
add_data: function (.data)
check: function (.data)
clone: function (deep = FALSE)
data: NULL
env: environment
extra: list
formula: formula
initialize: function (formula, ..., .env)
model: RW
origin: 1980 Jan
prepare: function (...)
print: function (...)
recall_lag: function (x, n = 1L, ...)
recent_data: NULL
remove_data: function ()
specials: environment
stage: NULL
train: function (.data, specials, ...)
.. .. .. ..$ data : tbl_ts [432 × 2] (S3: tbl_ts/tbl_df/tbl/data.frame)
.. .. .. .. ..$ Month : mth [1:432] 1980 Jan, 1980 Feb, 1980 Mar, 1980 Apr, 198...
.. .. .. .. ..$ season_year: num [1:432] -0.00104 -0.00107 -0.00154 -0.0013 -0.0011 ...
.. .. .. .. ..- attr(*, "key")= tibble [1 × 1] (S3: tbl_df/tbl/data.frame)
.. .. .. .. .. ..$ .rows: list<int> [1:1]
.. .. .. .. .. .. ..$ : int [1:432] 1 2 3 4 5 6 7 8 9 10 ...
.. .. .. .. .. .. ..@ ptype: int(0)
.. .. .. .. ..- attr(*, "index")= chr "Month"
.. .. .. .. .. ..- attr(*, "ordered")= logi TRUE
.. .. .. .. ..- attr(*, "index2")= chr "Month"
.. .. .. .. ..- attr(*, "interval")= interval [1:1] 1M
.. .. .. .. .. ..@ .regular: logi TRUE
.. .. .. ..$ response :List of 1
.. .. .. .. ..$ : symbol season_year
.. .. .. ..$ transformation:List of 1
.. .. .. .. ..$ :function (season_year)
.. .. .. .. .. ..- attr(*, "class")= chr "transformation"
.. .. .. .. .. ..- attr(*, "inverse")=function (season_year)
.. .. .. ..- attr(*, "class")= chr "mdl_ts"
.. .. ..- attr(*, "combination")= language e1 + e2
.. .. ..- attr(*, "class")= chr [1:2] "decomposition_model" "model_combination"
.. .. ..- attr(*, "dcmp_method")= chr "STL"
.. ..$ model :Classes 'mdl_defn', 'R6' <mdl_defn>
Public:
add_data: function (.data)
check: function (.data)
clone: function (deep = FALSE)
data: NULL
env: environment
extra: list
formula: formula
initialize: function (formula, ..., .env)
model: dcmp_mdl
origin: 1980 Jan
prepare: function (...)
print: function (...)
recall_lag: function (x, n = 1L, ...)
recent_data: NULL
remove_data: function ()
specials: environment
stage: NULL
train: function (.data, specials, ..., dcmp)
.. ..$ data : tbl_ts [432 × 2] (S3: tbl_ts/tbl_df/tbl/data.frame)
.. .. ..$ Month : mth [1:432] 1980 Jan, 1980 Feb, 1980 Mar, 1980 Apr, 1980 May,...
.. .. ..$ log(value): num [1:432] 4.36 4.37 4.38 4.39 4.4 ...
.. .. ..- attr(*, "key")= tibble [1 × 1] (S3: tbl_df/tbl/data.frame)
.. .. .. ..$ .rows:List of 1
.. .. .. .. ..$ : int [1:432] 1 2 3 4 5 6 7 8 9 10 ...
.. .. ..- attr(*, "index")= chr "Month"
.. .. .. ..- attr(*, "ordered")= logi TRUE
.. .. ..- attr(*, "index2")= chr "Month"
.. .. ..- attr(*, "interval")= interval [1:1] 1M
.. .. .. ..@ .regular: logi TRUE
.. ..$ response :List of 1
.. .. ..$ : symbol value
.. ..$ transformation:List of 1
.. .. ..$ :function (value)
.. .. .. ..- attr(*, "class")= chr "transformation"
.. .. .. ..- attr(*, "inverse")=function (value)
.. ..- attr(*, "class")= chr "mdl_ts"
- attr(*, "key")= tibble [1 × 1] (S3: tbl_df/tbl/data.frame)
..$ .rows: list<int> [1:1]
.. ..$ : int 1
.. ..@ ptype: int(0)
- attr(*, "model")= chr [1:2] "additive" "multiplicative"
- attr(*, "response")= chr "value"