Learn R Programming

emil (version 1.1-6)

emil.fit.pamr: Fit nearest shrunken centroids model.

Description

Wrapped version of the pamr package implementation. Note that this function uses internal cross-validation for determining the value of the shrinkage threshold.

Usage

emil.fit.pamr(x, y, error.fun, cv, threshold = NULL, ...,
  thres.fun = function(thr, err) median(thr[err == min(err)]),
  slim.fit = FALSE)

Arguments

x
Dataset, numerical matrix with observations as rows.
y
Class labels, factor.
error.fun
Error function for tuning.
slim.fit
Set to TRUE if you want to return the fitted classifier but discard pamr's cv.objects, which can be large. memory efficient. This means that the element cv$cv.objects containing the cross-validated fits will be dropp
cv
Cross-validation scheme for shrinkage tuning. It should be supplied on one of the following forms:

Value

  • Fitted pamr classifier.

item

  • threshold
  • ...
  • thres.fun

See Also

emil, emil.predict.pamr, emil.vimp.pamr, modeling.procedure