Main Outputs
The main output from the OCPD objects are the changepoints list and the R matrix if the it is chosen to be returned.
- Changepoints List: list of changepoints computed from different
approaches
- colmaxes: the list of changepoints taken from the maximum probability in each column of the R matrix
- threshchps: the list of changepoints that have run length probability above a threshold value, e.g. 0.5
- maxCPs: the list of changepoints with the highest overall probability
The list of possible changepoints can be accessed from the attribute “changepoint_lists”. The code and output from this example is shown below.
cpdf<- data.frame(method=names(ocpd1$changepoint_lists))
cpdf$changepoints<- unlist(ocpd1$changepoint_lists, recursive = FALSE)
kable(cpdf)
method | changepoints |
---|---|
colmaxes | 1, 51, 71 |
threshcps | 1, 51, 71 |
maxCPs | 1, 51, 71 |