Learn R Programming

dvir (version 3.3.0)

Bmarginal: 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)

Value

A matrix. Row i gives the posterior probability that victim i is one of the missing persons or someone else, denoted '*'.

Arguments

jointRes

Output from jointDVI().

missing

Character vector with names of missing persons.

prior

A numeric vector of length equal the number of rows in jointRes. Default is a flat prior.

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.

See Also

jointDVI()

Examples

Run this code
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)))


Run the code above in your browser using DataLab