Learn R Programming

DiscriMiner (version 0.1-22)

totalSS: Total Sum of Squares Matrix

Description

Calculates the total sum of squares and cross product matrix (a.k.a. total scatter matrix)

Usage

totalSS(variables)

Arguments

variables
matrix or data frame with explanatory variables

See Also

totalCov, betweenSS, withinSS

Examples

Run this code
# load iris dataset
  data(iris)
  
  # total scatter matrix
  totalSS(iris[,1:4])

Run the code above in your browser using DataLab