1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
\name{logLik.MclustDA}
\alias{logLik.MclustDA}
\title{Log-Likelihood of a \code{MclustDA} object}
\description{
Returns the log-likelihood for a \code{MclustDA} object.}
\usage{
\method{logLik}{MclustDA}(object, data, \dots)
}
\arguments{
\item{object}{an object of class \code{'MclustDA'} resulting from a call to \code{\link{MclustDA}}.}
\item{data}{the data for which the log-likelihood must be computed. If missing, the observed data from the \code{'MclustDA'} object is used.}
\item{\dots}{further arguments passed to or from other methods.}
}
% \details{}
\value{Returns an object of class \code{'logLik'} with an element providing the maximized log-likelihood, and further arguments giving the number of (estimated) parameters in the model (\code{"df"}) and the sample size (\code{"nobs"}).}
\author{Luca Scrucca}
% \note{}
\seealso{\code{\link{MclustDA}}.}
\examples{
\donttest{
irisMclustDA <- MclustDA(iris[,1:4], iris$Species)
summary(irisMclustDA)
logLik(irisMclustDA)
}
}
\keyword{multivariate}
|