Skip to content

MAPA function type = 'es' Error in !silent : invalid argument type #7

Description

@JoseMVilla117

I want to use the mapa function, it mostly works, for example:

mapa(y, fh = h, conf.lvl = c(0.95, 0.5,0.25), outplot = 1, comb = "mean")

mapa(y, fh = h, conf.lvl = c(0.95, 0.5,0.25), outplot = 1, comb = "mean", type = 'ets')

which produces the same result.

But using:

type = 'es'

Produces an error, I don't know why since the documentation says that:

<<type What type of exponential smoothing implementation to use. "es" = use from the smooth package; "ets" = use from the forecast package. Default is "es" >> (p.3)

https://cran.r-project.org/web/packages/MAPA/MAPA.pdf

Using type = 'ets' works fine, or just dont adding that parameter. I wanted to use xreg, but can't since it forces type type = 'es', thus producing the error.

> mapa(ts(c(1:80), frequency = 1), type = 'ets', outplot = 1)
MAPA fit MSE: 0.02, MAE: 0.13
Out-of-samplpe forecasts:
[1] 81.125

This is the error.

> mapa(ts(c(1:80), frequency = 1), type = 'es', outplot = 1)
Error in !silent : invalid argument type

I have already re installed both MAPA and smooth packages.

devtools::install_github("config-i1/smooth")
devtools::install_github("trnnick/mapa")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions