File: combMat.Rd

package info (click to toggle)
r-cran-mclust 6.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,540 kB
  • sloc: fortran: 13,298; ansic: 201; sh: 4; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 991 bytes parent folder | download | duplicates (3)
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
\name{combMat}
\alias{combMat}
\title{
Combining Matrix
}
\description{
Create a combining matrix
}
\usage{
combMat(K, l1, l2)
}
\arguments{
  \item{K}{
  The original number of classes: the matrix will define a combining from K to (K-1) classes.
  }
  \item{l1}{
  Label of one of the two classes to be combined.
  }
  \item{l2}{
  Label of the other class to be combined.
  }
}
\value{
If \code{z} is a vector (length \emph{K}) whose \emph{k}th entry is the probability that an observation belongs to the \emph{k}th class in a \emph{K}-classes classification, then \code{combiM \%*\% z} is the vector (length \emph{K-1}) whose \emph{k}th entry is the probability that the observation belongs to the \emph{k}th class in the \emph{K-1}-classes classification obtained by merging classes \code{l1} and \code{l2} in the initial classification.
}
\author{
J.-P. Baudry, A. E. Raftery, L. Scrucca
}
\seealso{
\code{\link{clustCombi}}, \code{\link{combiPlot}}
}
%\examples{}
\keyword{ cluster }