Default value of the option initial in the ses function in the forecast package.
The first one, i.e. "optimal"; check help for match.arg() for the idiom. -pd
On 2 Oct 2017, at 11:48 , Ashim Kapoor <ashimkapoor at gmail.com> wrote:
Dear All,
I am trying to use the function ses from the forecast package.
From its help I have :
Usage:
ses(y, h = 10, level = c(80, 95), fan = FALSE, initial = c("optimal",
"simple"), alpha = NULL, lambda = NULL, biasadj = FALSE, x = y, ...)
My query is that if I do not mention the initial value will its default
value be "optimal".
A MWE would be :
library(fpp)
oildata <- window(oil,start=1996,end=2007)
fit3 <- ses(oildata, h=3)
In the above is the default value of initial "optimal" or "simple" ?
Note I have taken this example from https://www.otexts.org/fpp/7/1
Best Regards,
Ashim
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com