Thanks for your replies. I have tried using the stable version the imputation gets
completed about 50% of the time but I get the following output and error the rest of the
time:
-- Imputation 1 --
setting up EM chain indicies
1(3338) 2(3134) 3(2490) 4(1474) 5(665) 6(302) 7(159) 8(96) 9(72) 10(46) 11(24)
12(18) 13(14) 14(7) 15(5) 16(2) 17(2) 18(2) 19(2) 20
(1) 21(1) 22(1) 23(1) 24(1) 25(1) 26(1) 27(1) 28(1) 29(1) 30(1) 31(1) 32(1) 33(1) 34(1)
35(1) 36(1) 37(1) 38(1) 39(1) 40
(1) 41(1) 42(1) 43(1) 44(1) 45(1) 46(1) 47(1) 48(1) 49(1) 50(1) 51(1) 52(1) 53(1) 54(1)
55(1) 56(1) 57(1) 58(1) 59(1) 60
(1) 61(1) 62(1) 63(1) 64(1) 65(1) 66(1) 67(1) 68(1) 69(1) 70(1) 71(1) 72(1) 73(1) 74(1)
75(1) 76(1) 77(1) 78(1) 79(1) 80
(1) 81(1) 82(1) 83(1) 84(1) 85(1) 86(1) 87(1) 88(1) 89(1) 90(1) 91(1) 92(1) 93(1) 94(1)
95(1) 96(1) 97(1) 98(1) 99(1) 100
(1) 101(1) 102(1) 103(1) 104(1) 105(1) 106(1) 107(0)
error: Mat::operator(): index out of bounds
terminate called after throwing an instance of 'std::logic_error'
what(): Mat::operator(): index out of bounds
For the same dataset, the imputation ran smoothly on the development version, which is why
I was asking about the development version. Not sure what the source of the error is.
Any suggestions you have to deal with this would be very useful.
Thanks,
Nandana
________________________________
From: Matt Blackwell [mblackwell(a)gov.harvard.edu]
Sent: Wednesday, April 05, 2017 8:43 PM
To: Nandana Sengupta
Cc: amelia(a)lists.gking.harvard.edu
Subject: Re: Amelia Development Version not installing
Hi Nandana,
Yep, the r.iq<http://r.iq> servers don't currently host development versions of
Amelia, but you can install the most recent stable version from CRAN using the following:
install.packages("Amelia", repos = "http://cran.r-project.org")
Hope that helps!
Cheers,
Matt
~~~~~~~~~~~
Matthew Blackwell
Assistant Professor of Government
Harvard University
url:
http://www.mattblackwell.org
On Wed, Apr 5, 2017 at 4:22 AM, Nandana Sengupta
<nandana@uchicago.edu<mailto:nandana@uchicago.edu>> wrote:
Hi,
I have been using the development version of Amelia for the past few months and finding it
very useful (Thanks Matt!).
However since the last two days an installation error pops up when trying to install using
the following command:
install.packages("Amelia", repos="http://r.iq.harvard.edu", type =
"source")
The error:
Warning: unable to access index for repository
http://r.iq.harvard.edu/src/contrib:
cannot open URL 'http://r.iq.harvard.edu/src/contrib/PACKAGES'
Warning message:
package ‘Amelia’ is not available (for R version 3.2.3)
Error in library("Amelia") : there is no package called ‘Amelia’
Execution halted
Would be great if the permissions could be restored so we can continue using the
development version.
Thanks a lot,
Nandana Sengupta
University of Chicago, Knowledge Lab
________________________________
From: Matt Blackwell
[mblackwell@gov.harvard.edu<mailto:mblackwell@gov.harvard.edu>]
Sent: Tuesday, September 29, 2015 9:48 PM
To: Nandana Sengupta;
amelia@lists.gking.harvard.edu<mailto:amelia@lists.gking.harvard.edu>
Subject: Re: [amelia] Error: contrasts can be applied only to factors with 2 or more
levels
Hi Nandana,
This is a bug in the current version of Amelia that occurs when listwise deletion
eliminates all observations. We have a fix for it in the development version of Amelia.
You can find installation instructions for that version here:
https://github.com/IQSS/Amelia<https://urldefense.proofpoint.com/v2/url?…
We will be submitting this development version to CRAN in the upcoming weeks.
Cheers,
Matt
~~~~~~~~~~~
Matthew Blackwell
Assistant Professor of Government
Harvard University
url:
http://www.mattblackwell.org<https://urldefense.proofpoint.com/v2/url?u=…
On Mon, Sep 28, 2015 at 12:43 PM Nandana Sengupta
<nandana@uchicago.edu<mailto:nandana@uchicago.edu>> wrote:
Hi,
I am running Amelia on a cleaned up subset of a single round of the National Longitudnal
Survey of Youth data.
The subset used in the analysis has 64 variables.
I only kept factor variables with 2 to 10 levels in the subset, but when I run the amelia
command I get the following error:
****
Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels
****
On the other hand the amelia code runs if I specify "incheck = FALSE" in the
command options.
I am also able to do multiple imputation on this dataset using other R software but am
keen to work with Amelia, since I want to utilize the TSCS aspect of multiple imputation
that the software provides.
Could you shed some light on why I am seeing the error above and also if the imputation
with errors suppressed is reliable?
Thanks,
Nandana Sengupta
University of Chicago, Knowledge Lab
--
Amelia mailing list served by HUIT
[Un]Subscribe/View Archive:
http://lists.gking.harvard.edu/?info=amelia
More info about Amelia:
http://gking.harvard.edu/amelia
Amelia mailing list
Amelia@lists.gking.harvard.edu<mailto:Amelia@lists.gking.harvard.edu>
To unsubscribe from this list or get other information:
https://lists.gking.harvard.edu/mailman/listinfo/amelia