Learn R Programming

MVR (version 1.20.0)

withinsumsq: Within-Cluster Sum of Squares Distances Subroutine

Description

Wrapping subroutine around internal C subroutine for returning Monte-Carlo replicates of within-cluster sum of squares distances for a given number of clusters and under a standard Gaussian reference distribution.

Usage

withinsumsq(n, p, B, k)

Arguments

n
Positive integer scalar of the number of rows in the data matrix (where points to cluster are by rows (usually samples)).
p
Positive integer scalar of the number of columns in the data matrix (where variables are by columns).
k
Positive integer scalar of the fixed number of clusters.
B
Positive integer scalar of the number of Monte Carlo replicates of the inner loop of the gap statistic function.

Value

  • lWk.mcnumeric B-vector of Monte Carlo replicates of within-cluster sum of squares.

Details

None

References

  • Dazard J-E., Hua Xu and J. S. Rao (2011). "R package MVR for Joint Adaptive Mean-Variance Regularization and Variance Stabilization." In JSM Proceedings, Section for Statistical Programmers and Analysts. Miami Beach, FL, USA: American Statistical Association IMS - JSM, 3849-3863.
  • Dazard J-E. and J. S. Rao (2012). "Joint Adaptive Mean-Variance Regularization and Variance Stabilization of High Dimensional Data." Comput. Statist. Data Anal. 56(7):2317-2333.

See Also

sim.dis Similarity Statistic.