xda.fit: Estimate parameters in discriminant analysis

Description Usage Arguments Value Author(s)

Description

Functions to estimate the parameters in linear and quadratic discriminant analysis (LDA, QDA, resp.). qda2lda provides coversion from QDA to LDA.

Usage

1
2
3
4
5
lda.fit(classes, vars)

qda.fit(classes, vars)

qda2lda(myqda)

Arguments

classes

A factor giving the classes of the rows of var.

vars

A numeric matrix giving the observed quantities. Rows correspond to observations and columns to variables.

myqda

The output of lda.fit.

Value

Returns a list with entries:

counts

The number of observations in each class.

means

The estimated means for each class.

sigmas

The estimated covariance matrix for each class.

Author(s)

Anders Ellern Bilgrau <anders.ellern.bilgrau (at) gmail.com>


AEBilgrau/Bmisc documentation built on Jan. 17, 2019, 10:10 a.m.