Learn R Programming

emil (version 1.1-6)

emil.predict.pamr: Prediction using nearest shrunken centroids.

Description

In case multiple thresholds give the same error the largest one is chosen (i.e. the one keeping the fewest features).

Usage

emil.predict.pamr(object, x, threshold, thres.fun, ...)

Arguments

object
Fitted classifier.
x
Dataset of observations to be classified.
threshold
Threshold to use for classification. This argument is only needed if you want to override the value set during model fitting.
thres.fun
Threshold selection function. Only needed if you want to override the function set during model fitting.
...
Sent to pamr.predict.

Value

  • A list with elements:
    • pred: Factor of predicted class memberships.
  • prob: Data frame of predicted class probabilities.

See Also

emil, emil.fit.pamr, emil.vimp.pamr, modeling.procedure