totalSS: Total Sum of Squares Matrix

Description Usage Arguments Author(s) See Also Examples

View source: R/totalSS.R

Description

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

Usage

1
  totalSS(variables)

Arguments

variables

matrix or data frame with explanatory variables

Author(s)

Gaston Sanchez

See Also

totalCov, betweenSS, withinSS

Examples

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

  # total scatter matrix
  totalSS(iris[,1:4])
  
## End(Not run)

Example output

             Sepal.Length Sepal.Width Petal.Length Petal.Width
Sepal.Length   102.168333   -6.322667     189.8730    76.92433
Sepal.Width     -6.322667   28.306933     -49.1188   -18.12427
Petal.Length   189.873000  -49.118800     464.3254   193.04580
Petal.Width     76.924333  -18.124267     193.0458    86.56993

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