predict.SL.qda: Prediction wrapper for SL.qda

View source: R/SL.qda.R

predict.SL.qdaR Documentation

Prediction wrapper for SL.qda

Description

Prediction wrapper for SL.qda

Usage

## S3 method for class 'SL.qda'
predict(object, newdata, prior = object$object$prior,
  dimen = NULL, method = "plug-in", ...)

Arguments

object

SL.lda object

newdata

Dataframe to generate predictions

prior

The prior probabilities of the classes, by default the proportions in the training set or what was set in the call to lda.

dimen

the dimension of the space to be used. If this is less than min(p, ng-1), only the first dimen discriminant components are used (except for method="predictive"), and only those dimensions are returned in x.

method

This determines how the parameter estimation is handled. With "plug-in" (the default) the usual unbiased parameter estimates are used and assumed to be correct. With "debiased" an unbiased estimator of the log posterior probabilities is used, and with "predictive" the parameter estimates are integrated out using a vague prior.

...

Unused additional arguments

See Also

SL.qda qda predict.qda


ecpolley/SuperLearner documentation built on Feb. 21, 2024, 11:38 p.m.