Learn R Programming

gSeg (version 1.1)

gseg1_data: Single-Change Graph Scan from Data or Dissimilarities

Description

Constructs a k-MST and applies the single-change scan.

Usage

gseg1_data(x = NULL, dissimilarity = NULL, k = NULL,
  statistics = "m", ...)

Value

The result from gseg1, with the constructed graph and realized k added.

Arguments

x

Optional data matrix with observations in rows.

dissimilarity

Optional square dissimilarity matrix or a dist object. Supply exactly one of x and dissimilarity.

k

Number of complete MST layers. The default is floor(sqrt(N)); the largest allowed value is floor(N/2).

statistics

Statistics passed to gseg1. The default reports MET only; use "g" to request GET or "all" for all historical statistics.

...

Further arguments passed to gseg1.

See Also

gseg1, gseg2_data, gseg_kmst

Examples

Run this code
set.seed(1)
x <- matrix(rnorm(60), nrow = 20)
ans <- gseg1_data(x = x, pval.appr = FALSE)
names(ans$scanZ)

Run the code above in your browser using DataLab