The script "simNmix.R" contains code for simulating the data.