I'm trying to use the parallel computing version of dredge (package MUMIn) for model selection of my full glmer model:
modmer.pom.full<-glmer(cbind(TEST,CONTROL)~ G+MS+l+MS*l+G*MS+G*l+I(l^2) + (1|c)+(1|s)+(1|l)+offset(log(qTEST/qCONTROL)),family=binomial(link = "logit"),data=df.pom.mer, control=glmerControl(optimizer="bobyqa"))
after setting the R cluster to be run in parallel,
cl <- makeCluster(3)
registerDoParallel(cl)
clusterExport(cl,"df.pom.mer")
I simply tried to use the pdredge function as it follows:
pdredge(modmer.pom.full,cluster=cl,rank = "AIC")
but there is not evaluation, contrary, I got the following output for all submodels:
Warning messages:
1: In eval(expr, envir, enclos) :
could not find function "glmer" (model 0 skipped)
I did not observed this problem by using the non-parallel computing function dredge. It seems that glmer is not recognized by pdredge, but I could not find the cause. I'm new user of both MUMIn and parallel packages, so could it be that I' missing something importnat in pdredge arguments?
Thanks a lot, Juan