lda {msos} | R Documentation |
Linear Discrimination
Description
Finds the coefficients and constants
for Fisher's linear
discrimination function
in (11.31) and (11.32).
Usage
lda(x, y)
Arguments
x |
The |
y |
The |
Value
A list with the following components:
- a
A
matrix, where column
contains the coefficents
for (11.31). The final column is all zero.
- c
The
-vector of constants
for (11.31). The final value is zero.
See Also
Examples
# Iris example
x.iris <- as.matrix(iris[, 1:4])
# Gets group vector (1, ... , 1, 2, ... , 2, 3, ..., 3)
y.iris <- rep(1:3, c(50, 50, 50))
ld.iris <- lda(x.iris, y.iris)
[Package msos version 1.2.0 Index]