Learn R Programming

BayesMallows (version 1.3.2)

compute_consensus.consensus_SMCMallows: Compute Consensus Ranking

Description

Compute the consensus ranking using either cumulative probability (CP) or maximum a posteriori (MAP) consensus vitelli2018BayesMallows. For mixture models, the consensus is given for each mixture.

Usage

# S3 method for consensus_SMCMallows
compute_consensus(model_fit, type, burnin, ...)

Arguments

model_fit

An object returned from compute_mallows.

type

Character string specifying which consensus to compute. Either "CP" or "MAP". Defaults to "CP".

burnin

A numeric value specifying the number of iterations to discard as burn-in. Defaults to model_fit$burnin, and must be provided if model_fit$burnin does not exist. See assess_convergence.

...

other arguments passed to methods.

Author

Anja Stein