Learn R Programming

DiscriMiner (version 0.1-29)

withinSS: Within-class Sum of Squares Matrix

Description

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

Usage

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)

See Also

withinCov, betweenSS, totalSS

Examples

Run this code
## Not run: 
#   # load iris dataset
#   data(iris)
# 
#   # within-class scatter matrix
#   withinSS(iris[,1:4], iris[,5])
#   ## End(Not run)

Run the code above in your browser using DataLab