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
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
On Mon, Sep 28, 2015 at 12:43 PM Nandana Sengupta <nandana(a)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(a)lists.gking.harvard.edu
To unsubscribe from this list or get other information:
https://lists.gking.harvard.edu/mailman/listinfo/amelia