confidence_plot | R Documentation |
Plots the estimates of how likely it is for the model to detect a change at any given point. True change-points should have confidence near $100%$, while non change-points should have a confidence near $0%$. It might also be difficult to detect a true change-point at the given sample size. In this case, it should fluctuate in the middle.
confidence_plot( model, scale = "percentage", index_values = NULL, index_variable_name = "Index", pkg = "base" )
model |
A |
scale |
A string describing the scale which the y-scale should is plotted. Possible values are "percentage", "probability" and "frequency". |
index_values |
A numerical vector of size ncol that contains the values of the the variable corresponding to the change points. |
index_variable_name |
Name of the variable segmented. |
pkg |
Graphical package to be used for plotting. Current values are "base". |
No return value.
td = rcpd(nrow = 10, ncol = 10) model = fit_blockcpd(td$data_matrix, bootstrap = TRUE) confidence_plot(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.