Hi Steve,
Have you upgraded to the newest version of Amelia? We recently
released a version that fixed this bug. You can upgrade to the newest
version by first making sure you have the most recent version of R
(2.7.0) and then run the following command:
install.packages("Amelia", repos="http://gking.harvard.edu")
Let us know if this does not solve your problem.
In response to your last question, you can assign the amelia output to
an R object like so:
amelia.out <- amelia(jan, m=5, p2s=2, empri=0, tolerance=0.0001,
startvals=1, archive=TRUE, incheck=T, ords=c("v1", "v2",
"v3", "v4",
"v5", "v7", "vv1", "vv2", "vv3",
"vv4", "vv5", "vv7"), collect=FALSE,
outname="jan", write.out=TRUE, keep.data=TRUE)
which will stop R from dumping the amelia output to the screen. You
can also access the imputed datasets in this object as amelia.out[[i]]
will be the ith imputed dataset.
hope that helps,
matt.
On Tue, May 27, 2008 at 3:39 PM, Steve Shewfelt
<steven.shewfelt(a)yale.edu> wrote:
I'm attempting to do imputation using the
following command line:
amelia(jan, m=5, p2s=2, empri=0, tolerance=0.0001, startvals=1,
archive=TRUE, incheck=T, ords=c("v1", "v2", "v3",
"v4", "v5", "v7", "vv1",
"vv2", "vv3", "vv4", "vv5", "vv7"),
collect=FALSE, outname="jan",
write.out=TRUE, keep.data=TRUE)
The problem I'm running into is that every time I run this command, v5 does
not get imputed. I have the exact same number of missing observations of v5
after the imputation as before. I get the following warning message:
Warning message:
In rbinom(nrow(x.orig), ordrange[k], p[, k]) : NAs produced
On a separate and less important note, is there a way when using the R
command line to prevent Amelia from printing the data in the R console? I
want to save the datasets but not print them in the R window.
Thank you in advance for any help you can give,
Steve Shewfelt
-
Amelia mailing list served by Harvard-MIT Data Center
[Un]Subscribe/View Archive:
http://lists.gking.harvard.edu/?info=amelia
-
Amelia mailing list served by Harvard-MIT Data Center
[Un]Subscribe/View Archive:
http://lists.gking.harvard.edu/?info=amelia