%- Also NEED an '\alias' for EACH other topic documented here.
\title{Calculate the posterior probability for integer copy numbers.}

  Calculate the posterior probability for integer copy numbers using the
  bivariate normal prediction regions.

posteriorProbability(object, predictRegion, copyNumber = 0:4, w)
%- maybe also 'usage' for other objects documented here.
    A \code{CNSet} object.
    A list containing the bivariate normal prediction region for each of
    the possible genotypes.
    Integer vector.

  \item{w}{ numeric vector of prior probabilities for each of the copy
    number states.  Must be the same length as \code{copyNumber} and sum
    to 1.}


This is currently under development.

An array (features x samples x copy number)

R. Scharpf

  This is under development. Use at your own risk.

%% ~Make other sections like Warning with \section{Warning }{....} ~

  \code{\link{predictionRegion}}, \code{\link{genotypes}} %\code{\link{calculatePosteriorMean}}
pr <- predictionRegion(cnSetExample, copyNumber=0:4)
pp <- posteriorProbability(cnSetExample, predictRegion=pr)

## multiple batches
pr <- predictionRegion(cnSetExample2, copyNumber=0:4)
pp <- posteriorProbability(cnSetExample2, predictRegion=pr)
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.