## Not run: ------------------------------------
#
# pmvals <- seq(0.02,0.99,0.02)
# mask <- make.mask(traps(ovenCH[[1]]), nx = 32, buffer = 100)
# ## only g0 ~ h2, so reduce pmi
# outPL <- pmixProfileLL(ovenCH[[1]], model = list(g0~h2), mask
# = mask, pmvals, CL = TRUE, ncores = 5, pmi = 4) ## slow!
# plot(pmvals, outPL, xlim = c(0,1),
# xlab = 'Fixed pmix', ylab = 'Profile log-likelihood')
#
## ---------------------------------------------
Run the code above in your browser using DataLab