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" <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <M.Buis@fsw.vu.nl> wrote:
-post `bin' (_b[var1]) (_b[var2])-

-----Original Message-----
From: tomrice@berkeley.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index