Thank you Matt,
Updating Amelia to Version 1.2-15 has fixed the problem.
Very appreciative!
Ndiaye
-----Original Message-----
From: Matt Blackwell [mailto:blackwel@fas.harvard.edu]
Sent: Saturday, February 20, 2010 5:50 PM
To: Ndiaye, Mamadou
Cc: amelia(a)lists.gking.harvard.edu
Subject: Re: [amelia] Error in if (sum(non.vary == 0))
Hi Ndiaye,
I have just committed a fix for your issue. If you upgrade to version
1.2-15, your should be able to impute normally. You can upgrade by
running the following command in R:
install.packages("Amelia", repos = "http://gking.harvard.edu/")
Thanks for bringing this to our attention.
Cheers,
matt.
On Wed, Feb 17, 2010 at 12:23 PM, Ndiaye, Mamadou
<MNdiaye(a)publichealthmdc.com> wrote:
Hi Matt,
I am still having the same error message with version 1.2-14.
The problem persists even after using a small subset of the data and substituting some
variables.
Thank you for your assistance.
Ndiaye
From: Matt Blackwell [mailto:blackwel@fas.harvard.edu]
Sent: Tuesday, February 16, 2010 4:28 PM
To: Ndiaye, Mamadou
Cc: amelia(a)lists.gking.harvard.edu
Subject: Re: [amelia] Error in if (sum(non.vary == 0))
Hi Ndiaye,
Do you still have this problem on the latest version of Amelia? You should see the
version number when you load the Amelia package. The most current version is 1.2-14.
Thanks!
matt.
On Tue, Dec 22, 2009 at 5:28 PM, Ndiaye, Mamadou <MNdiaye(a)publichealthmdc.com>
wrote:
After the following R commands:
a.out<-amelia(bd2,m=5 ,idvars
=c("bd_id","cty"),noms=c("race4","outc")) ,
I received this error message:
"Error in if (sum(non.vary == 0)) { :
argument is not interpretable as logical"
What that means?
I used the current versions of R and Amelia on Windows
The data contains more than 100,000 records, with 6 variables. They are all factors
except bwt3, a continuous variable.
See below the first rows of the data frame bd2:
head(bd2)
bd_id
race4
outc
cty
bwt3
1989-35129
1
1
0
2665
1989-43790
2
1
0
3685
1989-44528
1
1
0
3402
1989-48485
1
1
0
3175
1989-49402
1
1
0
3742
1989-55241
4
1
0
3941
Thanks you for any help.
Ndiaye
-
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