Computes the mode of the log-posterior distribution of the parameters
given the data and the prior distribution.
This function is generic (see Methods); method functions can be
written to handle specific classes of data. Classes which
already have methods for this function include:
Loglin,
Gauss and
cgm.
USAGE:
logpost(object, ...)
REQUIRED ARGUMENTS:
object
an object of class
"Gauss",
"preGauss",
"Loglin",
"preLoglin",
"cgm" or
"preCgm".
OPTIONAL ARGUMENTS:
...
most methods have additional arguments
prior and
theta which
affect the log-posterior calculations. Additional arguments are
possible. See the specific function called for a list of all
possible arguments.
VALUE:
the mode of the log-posterior distribution.
REFERENCES:
Schafer, J. L. (1997), Analysis of Incomplete Multivariate Data,
Chapman & Hall, London.
SEE ALSO:
,
,
.
EXAMPLES:
fit <- emGauss(cholesterol)
logpost(fit)
logpost.Gauss(fit) #same