Skip to content

No matrix of xreg is allowed in MAPA::mapafor #5

@sbcalaff

Description

@sbcalaff

MAPA Version 2.0.4

xreg_mapa <- df_sr_lf %>%
dplyr::select(hour_0to23.0, hour_0to23.1,
hour_0to23.8, hour_0to23.9) %>%
as.matrix()

Estimate

model_mapa <- MAPA::mapaest(y = df_train$sr_elec,
ppy = 24,
minimumAL = 1,
maximumAL = 24,
paral = 0,
display = 0,
outplot = 0,
model = "ANZ",
type = "es",
xreg = xreg_mapa,
pr.comp = 0)

Forecast

v_pred <- MAPA::mapafor(y = df_train$sr_elec,
mapafit = model_mapa,
fh = 72,
ifh = 0,
comb = "w.mean",
outplot = 0,
hybrid = TRUE,
conf.lvl = NULL,
xreg = xreg_mapa)
Error in mapacalc(y, mapafit, fh, comb, outplot = 0, hybrid, xreg = xreg) :
Number of xreg input variables does not match mapafit specification.

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