Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Posting results in a simulation (newbie question)


From   tomrice@berkeley.edu
To   statalist@hsphsun2.harvard.edu
Subject   st: Posting results in a simulation (newbie question)
Date   Fri, 28 Jul 2006 11:22:35 -0700 (PDT)

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index