[R] Program BFAST
Michael Bedward
michael.bedward at gmail.com
Wed Oct 13 08:36:14 CEST 2010
Hello,
Looking at the bfast help page is says that the "output" component of
the returned object is a list where the elements correspond to results
for each iteration of the fitting algorithm.
Michael
On 13 October 2010 15:58, CALEF ALEJANDRO RODRIGUEZ CUEVAS
<alejandro.rodriguez.cuevas at gmail.com> wrote:
> Hi everybody.
>
> I'm using BFAST program and I have some data to be analized (named
> "META.csv" for example). When I call BFAST in the following way:
>
> meta <- read.csv("C:/META.csv")
> meta.ts<-ts(meta, frequency=12, start = c(2005,9))
>
> dis<-frequency(meta.ts) / length(meta.ts)
>
> meta.sc<-bfast(meta.ts, h=dis, max.iter=1)
> meta.sc$output
>
> The last statement has the option of write it in the next fashion:
>
> meta.sc$output[[1]]
>
> or
>
> meta.sc$output[[2]]
>
> which have associated
>
> meta.sc$output[[1]]$bp.Vt or
> meta.sc$output[[2]]$bp.Vt
>
> respectively...However I really don't understand what's the difference (if
> such exists) in choosing [[1]] or [[2]]
>
> I've noticed that they show different results but I don't understan which is
> "correct" or "wrong" and when to choose any of them.
>
> thanks a lot for your unvaluable help.
>
> Regards
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>
More information about the R-help
mailing list