Description Usage Arguments Value Author(s) Examples
Take time series data and perform change point detection.
It uses cpt.mean
or cpt.var
from changepoint
package for change point detection.
If plot
is TRUE, it also plots the point where the changes take place.
1 |
data |
Time series data whose change point is to be detected.
The data should be either |
type |
Type of change to be detected.
Should be one of |
... |
Extra arguments for change point detection.
Refer to |
plot |
If |
A list containing the following elements:
change.point | Change point detection result(cpt object). |
plot | ggplot object of the plot. (Returned only if plot is TRUE.) |
Sanghyun Park, Daun Jeong, and Sehun Kim
1 2 3 4 5 6 7 8 | # 228 is the station code for SNU
data <- get.subway(228)
# Change point detection in mean
detect.change(data$total, type = "mean")
# Change point detection in variance
detect.change(data$total, type = "var")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.