Statalist The Stata Listserver


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

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


From   "Maarten Buis" <M.Buis@fsw.vu.nl>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Posting results in a simulation (newbie question)
Date   Fri, 28 Jul 2006 20:25:44 +0200

-post `bin' (_b[var1]) (_b[var2])-
HTH,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of tomrice@berkeley.edu
Sent: vrijdag 28 juli 2006 20:23
To: statalist@hsphsun2.harvard.edu
Subject: st: Posting results in a simulation (newbie question)

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/

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