Bmarginal {dvir} | R Documentation |
Posterior pairing probabilities
Description
Compute posterior pairing and non-pairing probabilities, based on a prior and
the output from jointDVI()
.
Usage
Bmarginal(jointRes, missing, prior = NULL)
Arguments
jointRes |
Output from |
missing |
Character vector with names of missing persons. |
prior |
A numeric vector of length equal the number of rows in
|
Details
The prior assigns a probability to each assignment, each row of jointRes
.
If the prior is not specified, a flat prior is used. The prior needs not sum
to 1 since the user may rather choose a flat prior on the a priori possible
assignments.
Value
A matrix. Row i
gives the posterior probability that victim i
is
one of the missing persons or someone else, denoted '*'.
See Also
Examples
jointRes = jointDVI(example1)
Bmarginal(jointRes, example1$missing)
# Artificial example: all but optimal solution excluded by prior
Bmarginal(jointRes, example1$missing, prior = c(1, rep(0,26)))
[Package dvir version 3.2.1 Index]