Hi Todd,
I think there may have been a bug in the "bounds" argument that caused
this problem. I've updated Amelia and it should be fixed. Since it's
not yet on CRAN, you can update to this newest version by running the
following line of code:
install.packages("Amelia", repos="http://gking.harvard.edu")
If you still have problems with the bounds, let us know and we can
investigate further.
Thanks for using Amelia,
matt.
On Mon, Apr 27, 2009 at 2:01 PM, Todd Whitehead
<toddpwhitehead(a)gmail.com> wrote:
Hi,
I'm using Amelia in R to impute missing values for my data, but I'm having a
problem. When I include a bounds= argument, I get an error message as
follows:
"Error in matrix(NA, nrow = AMn.ss, ncol = AMp) :
non-numeric matrix extent"
Here is what my code looks like:
imput.bound<-matrix(c(1,2,3,4,5,6,7,8,9,10,
-50,-50,-50,-50,-50,-50,-50,-50,-50,-50, 20,20,20,20,20,20,20,20,20,20),
nrow = 10, ncol=3, byrow=FALSE,)
blod<-amelia(data=nonmiss, m=5, p2s=1, idvars="childid",
bounds=imput.bound,
max.resample=100)
Does anybody see what I'm doing wrong? I tried looking through the
reference guide, "Amelia II: A Program for Missing Data", but I couldn't
find any info on this particular error message. Any advice you could offer
would really be appreciated.
Thanks,
Todd
-
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