Isaac,
That seems an odd error. If you can send me in a workspace, off-the-list, the EXT_impute
that you generate, I can work this out for you.
Best,
James.
--
James Honaker, Senior Research Scientist
//// Institute for Quantitative Social Science, Harvard University
________________________________________
From: amelia-bounces(a)lists.gking.harvard.edu [amelia-bounces(a)lists.gking.harvard.edu] On
Behalf Of Isaac Petersen [dadrivr(a)gmail.com]
Sent: Friday, September 28, 2012 2:23 PM
To: amelia(a)lists.gking.harvard.edu
Subject: [amelia] tscsPlot Error: the cross-section unit is not in the data
I am trying to plot the the observed and imputed values (with confidence intervals) in a
time series cross sectional data set, using tscsPlot.
Here is my imputation command:
EXT_impute <- amelia(imputeVars, m=20, cs="tcid", ts="age",
intercs=TRUE, polytime=1)
The imputation runs fine, and the dataset includes the cs and ts variables in the
arguments (corresponding to the first and second variables, 'tcid' and
'age', respectively):
EXT_impute$arguments$cs
[1] 1
EXT_impute$arguments$ts
[1] 2
However, when I run the tscsPlot command, I receive the following error (changing
"tcid" to 1 does not resolve the error):
tscsPlot(EXT_impute, cs="tcid",
var="extPOM")
Error in tscsPlot(EXT_impute, cs = "tcid", var =
"extPOM") :
the cross-section unit is not in the data
Why is the tscsPlot not reading the cs unit that I specified in the imputation command?
Any help would be greatly appreciated! Thanks in advance.