You can input another data set in setx() to generate predictions given the
fitted model that is based on another data set. The argument you want to
use for this is "data" see setx() reference manual:
http://gking.harvard.edu/zelig/docs/commandsRd/setx.pdf
Unfortunately, the comparison between predicted outcomes and actual
outcome values must be done by hand. Currently, there is no easy way to do
this in Zelig. However, Zelig does support cross-validation using boot
package. See the last example of Section 1.1.2 in
http://gking.harvard.edu/zelig/docs/static/Zcommands.pdf
Best,
Kosuke
On Thu, 7 Feb 2008, Aungsutorn Homtientong wrote:
To Whom this may Concern
Hi there, I have tried using the multinomial logistic
regression (mlogit) to estimate the model in zelig from the imputed data m=5
from Amelia. I actually have to compare the predicted value from the mlogit
model vs the training set from the data i have.(Im using the data from data
mining cup 2004 for my bacholor project). I know that sim() would generate
the predicted value by inputting the parameter of x.out and z.out. Then can
i actually compare the predicted value from sim() directly to the training
set i have to check the accuracy? since the parameter did not require any
data sets, or did it acquire the data from either x.out or z.out? then Later
on i have to use the model from the zelig to apply to the tester set, while
predict() that can input the model and the data won't work on zelig. how
exactly can i use the model from zelig to apply to the tester set here and
find accuracy? Many thanks
Thank You
A. Homtientong
-
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/