search for: gdp_pc

Displaying 1 result from an estimated 1 matches for "gdp_pc".

Did you mean: gdp_i
2012 Feb 21
0
Running Amelia with parallel processors in Windows
...# library(foreach) library(doSNOW) registerDoSNOW(makeCluster(4, type = "SOCK")) getDoParWorkers() getDoParName() getDoParVersion() data(africa) iterations <- 4 foreach(i = 1:iterations) %dopar% { amelia(x = africa, m=1, cs = "country", ts = "year", logs = "gdp_pc") } ###### When I run the foreach loop, I receive the following warning Error in { : task 1 failed - "could not find function "amelia"" This is a bizarre error because I have loaded the amelia package and can impute data sets fine outside of the foreach loop. Moreover, i...