label_switchPLMIX_single: Label switching adjustment for mixtures of Plackett-Luce...

View source: R/PLMIXfunctions.R

label_switchPLMIX_singleR 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 top_ordering, collecting the numeric N\timesK data matrix of partial orderings, or an object that can be coerced with as.top_ordering.

G

Number of mixture components.

MCMCsampleP

Numeric L\timesG*K matrix with the MCMC samples of the component-specific support parameters to be processed.

MCMCsampleW

Numeric L\timesG matrix with the MCMC samples of the mixture weights to be processed.

MAPestP

Numeric G\timesK matrix of MAP component-specific support parameter estimates to be used as pivot in the PRA method.

MAPestW

Numeric vector of the G MAP estimates of the mixture weights as pivot in the PRA method.

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 G\timesK\timesL array MCMC samples of the component-specific support parameters adjusted for label switching.

final_sampleW

Numeric L\timesG matrix of MCMC samples of the mixture weights adjusted for label switching.

Author(s)

Cristina Mollica and Luca Tardella


PLMIX documentation built on July 1, 2025, 1:12 a.m.