Optimal (m + 1)-segment partition:

Call:

breakpoints. formula(formula = mydata_ts ~ 1)

Breakpoints at observation number:

m = 1 40

m = 2 38 46

m = 3 13 38 46

m = 4 13 21 38 46

m = 5 13 21 30 38 46

Corresponding to break dates:

m = 1 40

m = 2 38 46

m = 3 13 38 46

m = 4 13 21 38 46

m = 5 13 21 30 38 46

Fit:

m 0 1 2 3 4 5

RSS 1,536,375.7 177,635.8 131,768.6 110,933.6 105,047.6 102,262.9

BIC 739.3 626.5 617.8 616.2 621.2 627.8