Papastamoulis, Panagiotis. “label.Switching: An R Package for Dealing With the Label Switching Problem in MCMC Outputs”.
Journal of Statistical Software, Code Snippets
, vol. 69, no. 1, Feb. 2016, pp. 1-24, doi:10.18637/jss.v069.c01.