-post `bin' (_b[var1]) (_b[var2])-
HTH,
Maarten
-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z434
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of [email protected]
Sent: vrijdag 28 juli 2006 20:23
To: [email protected]
Subject: st: Posting results in a simulation (newbie question)
Statalisters:
I am attempting a Monte Carlo simulation. I would like to simulate a data
set, apply a model, post results, and repeat. It seems straightforward.
The below program runs but posts nothing.
clear
set mem 400m
tempname bin
postfile `bin' likelihood using results.dta, replace
forvalues i=1/3 {
<simulate data set>
xtpoisson death var1 var2, i(vehicle) fe
post `bin' (e(ll))
}
exit
Of course, I do not want the likelihood - I want the 2 betas but I am not
sure how to get them from the matrix e(b) matrix.
Can someone help?
Tom Rice
UC Berkeley
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/