mda (version 0.4-9)

coef.fda: Produce coefficients for an fda or mda object

Description

a method for coef for extracting the canonical coefficients from an fda or mda object

Usage

# S3 method for fda
coef(object, …)

Arguments

object

an fda or mda object.

not relevant

Value

A coefficient matrix

Details

See the references for details.

References

``Flexible Disriminant Analysis by Optimal Scoring'' by Hastie, Tibshirani and Buja, 1994, JASA, 1255-1270.

``Penalized Discriminant Analysis'' by Hastie, Buja and Tibshirani, 1995, Annals of Statistics, 73-102.

``Elements of Statisical Learning - Data Mining, Inference and Prediction'' (2nd edition, Chapter 12) by Hastie, Tibshirani and Friedman, 2009, Springer

See Also

predict.fda, plot.fda, mars, bruto, polyreg, softmax, confusion,

Examples

Run this code
# NOT RUN {
data(iris)
irisfit <- fda(Species ~ ., data = iris)
coef(irisfit)
mfit=mda(Species~.,data=iris,subclass=2)
coef(mfit)
# }

Run the code above in your browser using DataCamp Workspace