betweenSS: Between-class Sum of Squares Matrix

Description Usage Arguments Author(s) See Also Examples

View source: R/betweenSS.R

Description

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

Usage

1
  betweenSS(variables, group)

Arguments

variables

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

group

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

Author(s)

Gaston Sanchez

See Also

betweenCov, withinSS, totalSS

Examples

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

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

Example output

             Sepal.Length Sepal.Width Petal.Length Petal.Width
Sepal.Length     63.21213   -19.95267     165.2484    71.27933
Sepal.Width     -19.95267    11.34493     -57.2396   -22.93267
Petal.Length    165.24840   -57.23960     437.1028   186.77400
Petal.Width      71.27933   -22.93267     186.7740    80.41333

DiscriMiner documentation built on May 1, 2019, 10:32 p.m.