predict.ldarob: Prediction method for ldarob objects

Description Usage Arguments Value

View source: R/ldarob.R

Description

Prediction method for ldarob objects

Usage

1
2
3
4
5
6
## S3 method for class 'ldarob'
predict(
  object,
  newdata = NULL,
  type = c("probs", "posterior", "class", "LD", "discriminant")
)

Arguments

object

the model fit

newdata

optional newdata. if left as NULL the fitted values are returned.

type

recognizes "probs" or "posterior" to return probabilities, "class" for class labels, "LD" or "discriminant" for the linear discriminants

Value

a vector of class labels, a matrix of probabilities, or a matrix of linear discriminants


abnormally-distributed/cvreg documentation built on May 3, 2020, 3:45 p.m.