Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mda.start

Initialization for Mixture Discriminant Analysis


Description

Provide starting weights for the mda function which performs discriminant analysis by gaussian mixtures.

Usage

mda.start(x, g, subclasses = 3, trace.mda.start = FALSE,
          start.method = c("kmeans", "lvq"), tries = 5,
          criterion = c("misclassification", "deviance"), ...)

Arguments

x

The x data, or an mda object.

g

The response vector g.

subclasses

number of subclasses per class, as in mda.

trace.mda.start

Show results of each iteration.

start.method

Either "kmeans" or "lvq". The latter requires package class (from the VR package bundle.

tries

Number of random starts.

criterion

By default, classification errors on the training data. Posterior deviance is also an option.

...

arguments to be passed to the mda fitter when using posterior deviance.

Value

A list of weight matrices, one for each class.


mda

Mixture and Flexible Discriminant Analysis

v0.5-2
GPL-2
Authors
S original by Trevor Hastie & Robert Tibshirani. Original R port by Friedrich Leisch, Kurt Hornik and Brian D. Ripley. Balasubramanian Narasimhan has contributed to the upgrading of the code.
Initial release
2020-06-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.