## Use parallel to dispatch the computations on 2 workers
if (FALSE) {
options(mc.cores = 2)
}
data(trichoptera)
trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
myMixtures <- PLNmixture(Abundance ~ 1 + offset(log(Offset)), clusters = 1:4, data = trichoptera,
control = PLNmixture_param(smoothing = 'none'))
if (FALSE) {
options(mc.cores = 1)
}
Run the code above in your browser using DataLab