.BG
.FN discr
.TL
Discriminant Analysis
.CS
discr(x, k)
.AG x
matrix of data.
The rows of `x' must be ordered by groups.
.AG k
either the number of groups (if groups are equal in size),
or the vector of group sizes; i.e., first `k[1]' rows form
group 1, next `k[2]' group 2, etc.
.RT
a list describing the discriminant analysis, with the
following components:
.RC cor
vector of discriminant correlations (correlations between linear
combinations of variables and of groups)
.RC groups
matrix of linear combinations of groups predicted.
.RC vars
matrix of linear combinations of variables.
.PP
Columns of `vars' give discriminant variables; i.e., `x %*% vars'
produces the matrix of discriminant variables.
.EX
# discrimination using a grouping variable
discr.group \(<- function(x,group) {
	size \(<- table(category(sort(group)))
	discr(x[order(group),],size)
}
.KW array
.KW multivariate
.WR
