Learn R Programming

DiscriMiner (version 0.1-29)

betweenSS: Between-class Sum of Squares Matrix

Description

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

Usage

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)

See Also

betweenCov, withinSS, totalSS

Examples

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

Run the code above in your browser using DataLab