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]
Sent: Tuesday, September 29, 2015 9:48 PM
To: Nandana Sengupta; 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:


We will be submitting this development version to CRAN in the upcoming weeks. 

Cheers,
Matt

~~~~~~~~~~~
Matthew Blackwell
Assistant Professor of Government
Harvard University


On Mon, Sep 28, 2015 at 12:43 PM Nandana Sengupta <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

To unsubscribe from this list or get other information:

https://lists.gking.harvard.edu/mailman/listinfo/amelia