r - MUMIn pdredge error with glmer -
i'm trying use parallel computing version of dredge (package mumin) model selection of 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 r cluster run in parallel,
cl <- makecluster(3) registerdoparallel(cl) clusterexport(cl,"df.pom.mer")
i tried use pdredge function follows:
pdredge(modmer.pom.full,cluster=cl,rank = "aic")
but there not evaluation, contrary, got following output submodels:
warning messages: 1: in eval(expr, envir, enclos) : not find function "glmer" (model 0 skipped)
i did not observed problem using non-parallel computing function dredge. seems glmer not recognized pdredge, not find cause. i'm new user of both mumin , parallel packages, i' missing importnat in pdredge arguments?
thanks lot, juan
Comments
Post a Comment