changepointDetection {flowMeans} | R Documentation

## Change-Point Detection

### Description

Fits a two-component piecewise linear regression to the minimum distance between merged clusters vs the number of clusters for a list of merged cluster solutions.

### Usage

    changepointDetection(vect, OrthagonalResiduals = FALSE, PlotFlag = FALSE)

### Arguments

`vect` | A vector of minimum distances between clusters chosen to be merged at each iteration.
`OrthagonalResiduals` | Boolean value, indicates if the residuals must be transformed to orthagonal distance or not.
`PlotFlag` | Boolean value, indicating if the regression lines must be visualized.

### Value

`MinIndex` | Index of the merging step that produced the final results.
`l1` | First regression line used for finding the changepoint for stopping the merging process.
`l2` | Second regression line used for finding the changepoint for stopping the merging process.

### Author(s)

Nima Aghaeepour

### Examples

    library(flowMeans)
    data(x)
    res <- flowMeans(x, c("FL1.H", "FL2.H", "FL3.H", "FL4.H"), MaxN=10)
    ft<-changepointDetection(res@Mins)
    plot(res@Mins)
    abline(ft$l1)
    abline(ft$l2)

[Package flowMeans version 1.52.0 Index]