impute_es: imputed by HoltWinters method

Description Usage Arguments Examples

View source: R/vava_funset.R

Description

imputed by HoltWinters method, forward or afterward

Usage

1
2
3
impute_es(x, extent = numeric(), forward = FALSE, methods = "HoltWinters",
  alpha = NULL, beta = NULL, gamma = NULL, file = paste(getwd(),
  "/HoltWintersAns.csv", sep = ""), out = TRUE)

Arguments

x

a vector, should converted to ts if not a annual time series.

extent

specify how long to predict forward or afterward.

forward

if TRUE, will predicts extent values forward, default is FALSE.

methods

method for impute, now only HoltWinters.

alpha

reference to HoltWinters.

beta

ditto.

gamma

ditto.

file

where to store answers.

out

export answers if TRUE.

Examples

1
2
3
4
x = c(12575.57 ,13965.77 ,14410.16 ,15531.18 ,17099.35 ,18231.83 ,19078.41 ,20062.66 ,21442.13 ,22879.18 ,23913.76 ,24365.62 ,25466.83 ,26441.65 ,27755.76 ,28762.68 ,30047.31 ,31553.62 ,32929.04 ,34601.72 ,36432.51 ,37241.35 ,38113.89 ,39591.86 ,41838.46 ,44218.31 ,46351.67 ,47954.53 ,48302.28 ,46909.42 ,48309.53 ,49725.5 ,51385.49 ,52615.34 ,54360.5)
x.ts = ts(x)
impute_es(x.ts, 6, gamma = F, forward = T)
impute_es(x.ts, 6, gamma = F, forward = T, out = F)

Nisus-Liu/vava documentation built on May 7, 2019, 6:18 p.m.