[R] Strucchange gbreakpoints

Vikram Bahure
2011-09-21T10:19:51Z

Hi,

I am  a new user to R.

I am using strucchange to generate breakpoints:
--------------------------------------------------------------------------------------
> 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]]