changepointDetection: Change-Point Detection

Description Usage Arguments Value Author(s) Examples

View source: R/changepointDetection.R

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

1
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

1
2
3
4
5
6
7
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)

flowMeans documentation built on Nov. 8, 2020, 4:51 p.m.