Hi Jeroen,
Thanks for reporting this. We'll try to fix it on the next release (soon).
It sounds like a great project you are working on. Keep us posted on the
progress if you dont mind. (you can contact me off-list if necessary).
You may also have a look at
http://thedata.org. The Dataverse Network
software contains a (web) user interface to Zelig.
thanks,
Ferdi
Jeroen Ooms wrote:
Hello Zelig, I'm new to the list, so first of
all, thank you for
Zelig, it's simply fantastic.
I am creating a web-interface for Zelig, but it kept returning errors
when running sim(). I finally figured out the problem: when the
'model' argument from the zelig() function is specified from a
variable instead of directly, it seems to work fine when fitting the
model, but you run into problems at the simulation step. An example:
library(Zelig);
data(macro);
myModel <- zelig(gdp~year+country,model="normal",data=macro);
x.out <- setx(myModel,country="Japan");
sim(myModel,x.out); #this works OK!
library(Zelig);
data(macro);
modeltype <- "normal";
myModel <- zelig(gdp~year+country,model=modeltype,data=macro); #it
looks like it works fine...
x.out <- setx(myModel,country="Japan"); # still looks OK...
sim(myModel,x.out); #but fails here.
Because the error that is returned by sim is not too helpful ("'match'
requires vector arguments") it is quite confusing what exactly went
wrong. Hopefully it can be fixed, or at least return a more
informative error.
thank you!
Jeroen Ooms
j.c.l.ooms(a)uu.nl
Department of Methodology & Statistics
Utrecht University
-
Zelig Mailing List, served by Harvard-MIT Data Center
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options:
http://lists.gking.harvard.edu/?info=zelig
Zelig program information:
http://gking.harvard.edu/zelig/
-
Zelig Mailing List, served by Harvard-MIT Data Center
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options:
http://lists.gking.harvard.edu/?info=zelig
Zelig program information:
http://gking.harvard.edu/zelig/