Statalist The Stata Listserver


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

Re: st: RE: Posting results in a simulation (newbie question)


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: RE: Posting results in a simulation (newbie question)
Date   Fri, 28 Jul 2006 14:40:07 -0400

tomrice-
You will want a -postclose `bin' - command at the end so you can use
the dataset you made, and you will want -version 9.2- and -set seed
1234- commands at the beginning so you can reproduce results.  Also
see -help simulate- for automation.

On 7/28/06, Maarten Buis <[email protected]> wrote:
-post `bin' (_b[var1]) (_b[var2])-

-----Original Message-----
From: [email protected]
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
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index