Dear Professor King, Miya and Patrick
We are having a similar problem. The following code runs with no problems on
one of our laptops (a mac with version 2.7.0):
data.matrix1 <- cbind(starting$gvtcare,
starting$pronhci,starting$cutwelfare, starting$cutmedicaid, starting$gvtdo,
starting$jobloss, starting$jobcomm, starting$eginsec, starting$demid,
starting$repid, starting$hhunion, starting$female, starting$nonwhite,
starting$income, starting$educ, starting$educinc, starting$age,
starting$hhlayoffs, starting$ncentral, starting$south, starting$west,
starting$skilled, starting$unskilled, starting$liberal,
starting$conservative, starting$weight)
colnames(data.matrix1) <- c("gvtcare",
"pronhci","cutwelfare","cutmedicaid",
"gvtdo","jobloss", "jobcomm",
"eginsec","demid", "repid",
"hhunion","female", "nonwhite","income",
"educ", "educinc","age",
"hhlayoffs","ncentral","south","west","skilled","unskilled","liberal","conservative","weights")
data1 <- as.data.frame(data.matrix1)
head(data1)
amelia1 <- amelia(data=data1,m=5,p2s=1,
noms=c("gvtcare","pronhci",
"cutwelfare", "cutmedicaid", "gvtdo",
"demid","repid","hhunion","female","nonwhite","educinc",
"ncentral",
"south", "west", "skilled", "unskilled",
"liberal", "conservative"),
ords=c("jobloss",
"jobcomm","income","educ","age"))
But on the other (a pc with version 2.8.1) we get following error message
after the final line of the above code:
Error in amelia(data = data1, m = 5, p2s = 1, noms = c("gvtcare",
"pronhci", :
argument "x" is missing, with no default
Many thanks
Sam
On Sat, Apr 25, 2009 at 8:46 AM, charlotte cavaille <
charlotte.cavaille at gmail.com> wrote:
Dear Professor King, Miya and Patrick
Just wanted to mention the following thing that happen to me: this piece of
R code using Amelia only runs on one of the HMDC computers, I have tried 4
other computers and get an error message about unused
arguments...(concerning that variable with NAs)
I will stick to the working computer hoping that it is because it has the
right Amelia package that it runs ( and not because there is something wrong
that, for weird reasons, still goes our way!)
Thought i would mention it just in case anyone had the same issue...really
weird!
model.1.new <- scrugg.f[, c("uercovch", "laguercov",
"lagleftc",
"lagtradeopen", "lagopenn",
"laguerate", "laggrow", "hrsveto", "siaroff",
"ggdeflag", "bbb",
"blaguercov",
"blagleftc", "blagtradeopen", "blagopenn",
"blaguerate", "blaggrow",
"bhrsveto",
"bsiaroff", "bggdef", "dum1", "dum2",
"dum3", "dum4", "dum5", "dum6",
"dum7", "dum8",
"dum10", "dum12", "dum13", "dum14",
"dum18", "dum19", "dum20", "dum21",
"counter", "year")]
## use amelia to impute missing data
model.1.new.am.list <- amelia(x=model.1.new, m=5, idvars=c("dum1",
"dum2",
"dum3", "dum4",
"dum5", "dum6", "dum7", "dum8",
"dum10", "dum12", "dum13", "dum14",
"dum18", "dum19",
"dum20", "dum21"), ts="year", cs="counter",
polytime=3)$imputations
best regards
Charlotte
_______________________________________________
gov2001-l mailing list
gov2001-l at
mailman.fas.harvard.edu
http://mailman.fas.harvard.edu/mailman/listinfo/gov2001-l