[R] Strucchange gbreakpoints

Achim Zeileis Achim.Zeileis at uibk.ac.at
Wed Sep 21 12:41:51 CEST 2011


On Wed, 21 Sep 2011, Vikram Bahure wrote:

> Hi,
>
> I am  a new user to R.
>
> I am using strucchange to generate breakpoints:

The answer is still the same as last week:
https://stat.ethz.ch/pipermail/r-help/2011-September/289944.html

> --------------------------------------------------------------------------------------
>> res <- gbreakpoints(GDP.new ~ 1,data=a,h=2,breaks=5)
>> print(res)
>
>     Optimal 6-segment partition for `lm' fit:
>
> Call:
> gbreakpoints(formula = GDP.new ~ 1, data = a, h = 2, breaks = 5)
>
> Breakpoints at observation number:
> 10 19 25 38 48
>
> Corresponding to breakdates:
> 1960 1969 1975 1988 1998
> --------------------------------------------------------------------------------------
> I want to access the breakdates.
>
> I can access the breakpoints by: res[[1]]
>
> I wish to access breakpoints dates but still struggling. I hope get some
> help.
>
> Thanks in advance.
>
> Regards
> Vikram
>
> 	[[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