withinSS: Within-class Sum of Squares Matrix

Description Usage Arguments Author(s) See Also Examples

View source: R/withinSS.R

Description

Calculates within-class sum of squares and cross product matrix (a.k.a. within-class scatter matrix)

Usage

1
  withinSS(variables, group)

Arguments

variables

matrix or data frame with explanatory variables (No missing values are allowed)

group

vector or factor with group memberships (No missing values are allowed)

Author(s)

Gaston Sanchez

See Also

withinCov, betweenSS, totalSS

Examples

1
2
3
4
5
6
7
8
## Not run: 
  # load iris dataset
  data(iris)

  # within-class scatter matrix
  withinSS(iris[,1:4], iris[,5])
  
## End(Not run)

gastonstat/DiscriMiner documentation built on Feb. 27, 2021, 4:58 a.m.