Statalist The Stata Listserver

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

st: Posting results in a simulation (newbie question)

Subject   st: Posting results in a simulation (newbie question)
Date   Fri, 28 Jul 2006 11:22:35 -0700 (PDT)


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.

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))

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:

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