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/