label_switchPLMIX_single {PLMIX} | R Documentation |
Label switching adjustment for mixtures of Plackett-Luce models
Description
Remove the label switching phenomenon from the MCMC samples of Bayesian mixtures of Plackett-Luce models with a different number of components.
Usage
label_switchPLMIX_single(pi_inv, G, MCMCsampleP, MCMCsampleW, MAPestP, MAPestW)
Arguments
pi_inv |
An object of class |
G |
Number of mixture components. |
MCMCsampleP |
Numeric |
MCMCsampleW |
Numeric |
MAPestP |
Numeric |
MAPestW |
Numeric vector of the |
Details
The label_switchPLMIX
function performs the label switching adjustment of the MCMC samples via the Pivotal Reordering Algorithm (PRA) described in Marin et al (2005), by recalling the pra
function from the label.switching
package.
Value
A list of named objects:
final_sampleP |
Numeric |
final_sampleW |
Numeric |
Author(s)
Cristina Mollica and Luca Tardella