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.702 0.8 14.831 0.425
.. .. .. .. ..$ 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] 13.8 14.2 17.1 17.5 11 ...
.. .. .. .. .. ..$ .fitted : num [1:432] 15.2 13.3 14.3 18.8 18.1 ...
.. .. .. .. .. ..$ .resid : num [1:432] -1.355 0.849 2.873 -1.318 -7.145 ...
.. .. .. .. .. ..- 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.334
.. .. .. .. .. ..$ log_lik: num -1071
.. .. .. .. .. ..$ AIC : num 2155
.. .. .. .. .. ..$ AICc : num 2155
.. .. .. .. .. ..$ BIC : num 2179
.. .. .. .. .. ..$ MSE : num 0.33
.. .. .. .. .. ..$ AMSE : num 1.38
.. .. .. .. .. ..$ MAE : num 0.24
.. .. .. .. ..$ 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] 14.8 13.8 14.2 17.1 17.5 ...
.. .. .. .. .. ..$ b : num [1:433] 0.425 -0.61 0.108 2.103 0.757 ...
.. .. .. .. .. ..- 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] 13.8 14.2 17.1 17.5 11 ...
.. .. .. .. ..- 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.00372 -0.04728 0.05339 0.10973 0.01885 ...
.. .. .. .. ..- 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.00372 -0.04728 0.05339 0.10973 0.01885 ...
.. .. .. .. ..- 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] 13.8 14.1 17.2 17.6 11 ...
.. .. ..- 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] 1 0.215 0.802 3.247 -0.814
.. .. .. .. ..$ 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] 2.67 2.66 2.84 2.85 2.38 ...
.. .. .. .. .. ..$ .fitted : num [1:432] 2.59 2.16 2.34 2.67 2.75 ...
.. .. .. .. .. ..$ .resid : num [1:432] 0.0724 0.5082 0.4964 0.1869 -0.3643 ...
.. .. .. .. .. ..- 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.0128
.. .. .. .. .. ..$ log_lik: num -367
.. .. .. .. .. ..$ AIC : num 745
.. .. .. .. .. ..$ AICc : num 745
.. .. .. .. .. ..$ BIC : num 769
.. .. .. .. .. ..$ MSE : num 0.0126
.. .. .. .. .. ..$ AMSE : num 0.0387
.. .. .. .. .. ..$ MAE : num 0.0606
.. .. .. .. ..$ 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] 3.25 2.67 2.66 2.84 2.85 ...
.. .. .. .. .. ..$ b : num [1:433] -0.814 -0.637 -0.401 -0.215 -0.132 ...
.. .. .. .. .. ..- 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] 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] 2.67 2.66 2.84 2.85 2.38 ...
.. .. .. .. ..- 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.04041 -0.01576 0.00575 0.01549 0.01342 ...
.. .. .. .. ..- 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.04041 -0.01576 0.00575 0.01549 0.01342 ...
.. .. .. .. ..- 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] 2.63 2.65 2.84 2.87 2.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"