View source: R/PLMIXfunctions.R
label_switchPLMIX_single | R Documentation |
Remove the label switching phenomenon from the MCMC samples of Bayesian mixtures of Plackett-Luce models with a different number of components.
label_switchPLMIX_single(pi_inv, G, MCMCsampleP, MCMCsampleW, MAPestP, MAPestW)
pi_inv |
An object of class |
G |
Number of mixture components. |
MCMCsampleP |
Numeric |
MCMCsampleW |
Numeric |
MAPestP |
Numeric |
MAPestW |
Numeric vector of the |
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.
A list of named objects:
final_sampleP |
Numeric |
final_sampleW |
Numeric |
Cristina Mollica and Luca Tardella
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.