lab_switching.RdThis function can be used to perturb a clustering vector in order to randomly associate certain individuals with another cluster.
lab_switching(Z, p_out = 0.1)a clustering vector
a probability of perturbation for the clustering
a perturbed clustering vector