MDAModel | R Documentation |
Performs mixture discriminant analysis.
MDAModel(
subclasses = 3,
sub.df = numeric(),
tot.df = numeric(),
dimension = sum(subclasses) - 1,
eps = .Machine$double.eps,
iter = 5,
method = .(mda::polyreg),
trace = FALSE,
...
)
subclasses |
numeric value or vector of subclasses per class. |
sub.df |
effective degrees of freedom of the centroids per class if subclass centroid shrinkage is performed. |
tot.df |
specification of the total degrees of freedom as an alternative
to |
dimension |
dimension of the discriminant subspace to use for prediction. |
eps |
numeric threshold for automatically truncating the dimension. |
iter |
limit on the total number of iterations. |
method |
regression function used in optimal scaling. The default of
linear regression is provided by |
trace |
logical indicating whether iteration information is printed. |
... |
additional arguments to |
factor
subclasses
The predict
function for this model additionally accepts the
following argument.
prior
prior class membership probabilities for prediction data if different from the training set.
Default argument values and further model details can be found in the source See Also links below.
MLModel
class object.
mda
, predict.mda
,
fit
, resample
## Requires prior installation of suggested package mda to run
fit(Species ~ ., data = iris, model = MDAModel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.