Skip to content
Prev 1768 / 2152 Next

Embarrasingly parallel computation of models (practically solved; conceptually still unclear)

On Sep 6, 2013, at 10:13 AM, Michael Kubovy wrote:

            
It is in the spirit of foreach - you're telling it to loop over an index instead of the list. What you probably meant is

foreach(formula = formulaList) %dopar% glmer(formula, family = binomial, data = selected)

It's maybe more R-like (and less typing ;)) to write it as

mclapply(formulaList, glmer, family = binomial, data = selected)

Cheers,
Simon