Description Usage Arguments Details Value Examples
Classify multivariate observations in conjunction with fenn
, and also
project data onto the scaled linear discriminants.
1 2 | predict.fenn(object, newdata, prior = object$prior, dimen,
method = c("knn", "lda"), ...)
|
object |
Object of class |
newdata |
Data frame of cases to be classified or, if |
method |
This determines how the parameter estimation is handled. With |
... |
Arguments based from or to other methods |
reduce.dm |
The dimension of the data will be reduced before performing knn. |
This function is a method for the generic function predict()
for
class "fenn"
. It can be invoked by calling predict(x)
for
an object x
of the appropriate class, or directly by calling
predict.fenn(x)
regardless of the class of the object.
Missing values in newdata
are handled by returning NA
if the
scaled linear discriminants cannot be evaluated. If newdata
is omitted and
the na.action
of the fit omitted cases, these will be omitted on the
prediction.
This version centres the scaled linear discriminants so that the
weighted mean (weighted by prior
) of the group centroids is at
the origin.
A list with components:
class |
The MAP classification (a factor). |
posterior |
If classification method is lda, the posterior probabilities for the classes in the tilde transformed space will be returned. |
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.