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