Hi Will,
It looks like a recent update caused a bit of problem in our error
checking routine. I've updated the code and version 1.2-10 should work
properly. You can update your version of Amelia using the following
command:
install.packages("Amelia", repos = "http://gking.harvard.edu")
It should be available via CRAN within a few days as well.
Thanks for bringing this to our attention.
Cheers,
matt.
On Mon, Jul 6, 2009 at 4:09 PM, Will Bullock<wbullock(a)princeton.edu> wrote:
Hello,
I believe the latest update to the Amelia package for R has inadvertently
broken some essential functionality.
Using a sample dataset available here, I'm using the following code:
library(Amelia)
load("sampleData.RData")
test <- amelia(sampleData, idvars=c("st"),
noms=c("female","imports"),
ords=c("age", "edu", "inc"))
On one computer using Version 1.2-2, built: 2009-04-27 available via the
CRAN archives, everything goes well.
On a second computer using Version 1.2-9, built: 2009-07-02 I get:
Error in sum(sapply(x[, fact], is.factor)) :
invalid 'type' (list) of argument
It appears as though amelia is having trouble taking in a vector of column
names, but I must admit I haven't done extensive testing of the problem.
Any help would be much appreciated.
Sincerely,
--Will Bullock
Department of Politics
Princeton University
-
Amelia mailing list served by Harvard-MIT Data Center
[Un]Subscribe/View Archive:
http://lists.gking.harvard.edu/?info=amelia
More info about Amelia:
http://gking.harvard.edu/amelia