predict.CDA.cv: Predict method for cross-validated CDA submodels

View source: R/predict.CDA.cv.R

predict.CDA.cvR Documentation

Predict method for cross-validated CDA submodels

Description

Predicts response based on CDA (correspondence discriminant analysis) submodels generated by cross validation. The predicted class is given with its probability (computed from the values predicted by all submodels).

Usage


## S3 method for class 'CDA.cv'
predict(object, newdata, type = c("max", "all"), method = c("mahalanobis",
  "euclidian"), ...)

Arguments

object

object of class inheriting from "CDA.cv".

newdata

vector, matrix or data frame giving new individuals (one row per individual).

type

should the probability of the most probable class be given ("max", the default) or the probability of each class ("all")?

method

criterion used to predict class membership. See predict.coadisc.

...

further arguments to be passed to or from other methods.

Author(s)

Maxime HERVE <maxime.herve@univ-rennes1.fr>

See Also

CDA.cv, predict.coadisc


RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.