predict.lda.prmdt: predict.lda.prmdt

View source: R/predict.R

predict.lda.prmdtR Documentation

predict.lda.prmdt

Description

Return prediction for a lda model.

Usage

## S3 method for class 'lda.prmdt'
predict(object, newdata, type = "class", ...)

Arguments

object

a lda model object for which prediction is desired.

newdata

an optional data frame in which to look for variables with which to predict.

type

type of prediction 'prob' or 'class' (default).

...

additional arguments affecting the predictions produced.

Value

a vector or matrix of predictions for lda model.


traineR documentation built on Nov. 10, 2023, 1:15 a.m.