Learn R Programming

expperm (version 0.1.0)

brute: Brute-force calculation of an expected permutation matrix

Description

Computes an expected permutation matrix and marginal likelihood from a matrix of assignment likelihoods. The function literally enumerates all permutations so will be impractial for matrices with more than 10 rows.

Usage

brute(A)

Arguments

A

A matrix of assignment likelihoods.

Value

E(P), the expected permutation matrix corresponding to A.

Examples

Run this code
# NOT RUN {
data(A)
brute(A)
# }

Run the code above in your browser using DataLab