https://github.com/cran/sparseLDA
Raw File
Tip revision: ff6ae41bf0fbe047abe08eea76152a2d2c41ea16 authored by Max Kuhn on 22 September 2016, 17:10:01 UTC
version 0.1-9
Tip revision: ff6ae41
predict.sda.Rd
\name{predict.sda}
\Rdversion{1.1}
\alias{predict.sda}
\alias{predict.smda}
\title{
Predict method for Sparse Discriminant Methods
}
\description{
Prediction functions for \code{link{sda}} and \code{link{smda}}.
}
\usage{
\method{predict}{sda}(object, newdata = NULL, ...)
\method{predict}{smda}(object, newdata = NULL, ...)
}
\arguments{
  \item{object}{
   an object of class  \code{link{sda}} or \code{link{smda}}
}
  \item{newdata}{
  a matrix or data frame of predictors
}
  \item{\dots}{
  arguments passed to \code{link[MASS]{predict.lda}} 
}
}
\details{
The current implementation for mixture discriminant models current predicts the subclass probabilities.
}
\value{
A list with components:
  \item{class }{The classification (a factor)}
  \item{posterior }{posterior probabilities for the classes (or subclasses for \code{link{smda}})}
  \item{x }{the scores}
}

\keyword{ multivariate }

back to top