File Exchange > Data Analysis >    Change Point Analysis

Author:
OriginLab Technical Support
Date Added:
11/13/2018
Last Update:
6/26/2024
Downloads (90 Days):
207
Total Ratings:
5
File Size:
41 KB
Average Rating:
File Name:
cpa.opx
File Version:
1.25
Minimum Versions:
License:
Free
Type:
App
Summary:

Detect single and multiple change points within data.

Screen Shot and Video:
Description:

Purpose
This app can be used to detect single and multiple changes within a given time series or sequence.

Installation

The app requires R software (recommended version 4.4.1) and package (changepoint).

  1. Open the download page for R version 4.4.1
  2. Download the file named R-4.4.1-win.exe and install it
  3. Once you have successfully installed R, you can then install the App
  4. The App will download and install required R packages when you run it the first time.

Note that if you installed the App prior to instalilng R, the App icon will show in the Apps bar.
Simply click on that icon to continue after you have installed R.

Note: If downloading packages fails, a pop-up dialog will ask you to copy 2 lines of commands from Results Log and run them in R to complete downloading packages. 

Related FAQ: FAQ-1214 What can I do when Origin has trouble launching R?

Operation

  1. Activate a worksheet with XY columns or a graph with XY data plots.
  2. Click the icon in the Apps Gallery window to open the dialog. Select a dataset as input. 
  3. Change settings under the Options node:
    • Identify Changes In: Identify changes in mean, variance or both.
    • Method: Algorithm used to detect change points. If Binary Segmentation or Segment Neighborhood is selected, you should also specify maximum number of change points.
    • Assumed Test Statistic: The assumed test statistic / distribution of the data.
    • Penalty: Value used to ascertain what are important changes and what are not.
    • Penalty Value: Type I error for Asymptotic, number to be evaluated for manual penalties.
    • Minimum Segment Length: Minimum number of data points between changes (default is 1).
  4. Click Preview to show change points.
  5. Click OK to output report sheet.

Updates:

v1.25:07/9/2025 Support repos from Rprofile.
v1.23:06/30/2025 Use R_LIBS_USER as path.
v1.21:6/26/2024 Change Package location.
v1.2:5/27/2022 Fix loading library bug in R v4.2.

Reviews and Comments:
11/07/2023OriginLabHi Pangbo0831, does the error pop up when you click the app icon? It will be better if you can show us the error by taking a screenshot.

OriginLab Technical Support

11/07/2023Pangbo0831Fatal error:unable to open the package? Why?

04/17/2023OriginLabHi, Strelok163

We will contact you with email to see what went wrong.

OriginLab Technical Support

04/15/2023Strelok163ORTryCatch <- function(expr) {
warn <- err <- NULL
value <- withCallingHandlers(
tryCatch(expr, error=function(e) {
err <<- e
NULL
}), warning=function(w) {
warn <<- w
invokeRestart("muffleWarning")
})
list(value=value, warning=warn, error=err)
}

InstallCPAPackages<-function()
{
list.of.packages <- c("changepoint")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)

return()
}
What two lines should be copied?

04/15/2023Strelok163cpa:X-Function failed to execute!
Failed to find any change point. Please change your settings.