Last chance! 50% off unlimited learning
Sale ends in
performs a linear discriminant analysis.
discrimin(dudi, fac, scannf = TRUE, nf = 2)
# S3 method for discrimin
plot(x, xax = 1, yax = 2, ...)
# S3 method for discrimin
print(x, ...)
returns a list of class 'discrimin' containing :
a numeric value indicating the number of kept axes
a numeric vector with all the eigenvalues
a matrix with the loadings: the canonical weights
a data frame which gives the canonical scores
a matrix which gives the cosines between the variables and the canonical scores
a matrix which gives the cosines between the components and the canonical scores
a data frame which gives the class scores
a duality diagram, object of class dudi
a factor defining the classes of discriminant analysis
a logical value indicating whether the eigenvalues bar plot should be displayed
if scannf FALSE, an integer indicating the number of kept axes
an object of class 'discrimin'
the column number of the x-axis
the column number of the y-axis
further arguments passed to or from other methods
Daniel Chessel
Anne-Béatrice Dufour anne-beatrice.dufour@univ-lyon1.fr
lda
in package MASS
data(chazeb)
dis1 <- discrimin(dudi.pca(chazeb$tab, scan = FALSE), chazeb$cla,
scan = FALSE)
dis1
if(!adegraphicsLoaded())
plot(dis1)
data(skulls)
plot(discrimin(dudi.pca(skulls, scan = FALSE), gl(5,30),
scan = FALSE))
Run the code above in your browser using DataLab