Performs mixture discriminant analysis.
MDAModel(
subclasses = 3,
sub.df = NULL,
tot.df = NULL,
dimension = sum(subclasses) - 1,
eps = .Machine$double.eps,
iter = 5,
method = .(mda::polyreg),
trace = FALSE,
...
)numeric value or vector of subclasses per class.
effective degrees of freedom of the centroids per class if subclass centroid shrinkage is performed.
specification of the total degrees of freedom as an alternative
to sub.df.
dimension of the discriminant subspace to use for prediction.
numeric threshold for automatically truncating the dimension.
limit on the total number of iterations.
regression function used in optimal scaling. The default of
linear regression is provided by polyreg from the
mda package. For penalized mixture discriminant models,
gen.ridge is appropriate. Other possibilities are
mars for multivariate adaptive regression splines and
bruto for adaptive backfitting of additive splines. Use
the . operator to quote specified
functions.
logical indicating whether iteration information is printed.
additional arguments to mda.start and method.
MLModel class object.
factor
subclasses
The predict function for this model additionally accepts the
following argument.
priorprior class membership probabilities for prediction data if different from the training set.
Default values for the NULL arguments and further model details can be
found in the source links below.
# NOT RUN {
fit(Species ~ ., data = iris, model = MDAModel)
# }
Run the code above in your browser using DataLab