Check if the panel is balanced and whether there are missing identifiers for
some obs.
table(panel$preriod,panel$country,na.rm=F)
From: gov2001-l-bounces at
lists.fas.harvard.edu
[mailto:gov2001-l-bounces at
lists.fas.harvard.edu] On Behalf Of Joseph
Williams
Sent: Saturday, April 26, 2008 10:34 AM
To: gov2001-l at
lists.fas.harvard.edu
Subject: [gov2001-l] Error with amelia(data, ts=ts, cs=cs)
Hello;
I have been trying to run amelia() including the ts and cs arguments.
Amelia accepts the ts argument, but keeps rejecting the cs argument. I keep
getting this error message:
amelia(panel, ts=panel$period, cs=panel$country,
outname="xt")
Amelia Error Code: 6
The 'cs' variable is out of the range of
possible column numbers or is not an integer.
$code
[1] 6
panel = panel data set
country is a number assigned to identify each country (i.e. 1 = Afghanistan,
2=Angola, etc.)
Does anyone have an idea what I am doing wrong?
Thanks
Joe