brute {expperm} | R Documentation |
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.
brute(A, return.permanent = FALSE)
A |
A matrix of assignment likelihoods. |
return.permanent |
A logical value indicating whether the function should also return the permanent of |
E(P)
, the expected permutation matrix corresponding to A
.
data(A) brute(A)