Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re: Using -simulate- with returned matrices from estimation commands


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: Using -simulate- with returned matrices from estimation commands
Date   Tue, 14 Apr 2009 22:09:29 +0200

<>

This certainly works, the betas are returned by default...

***
cap prog drop bootbeta

sysuse auto, clear

program bootbeta

preserve
bsample
reg price weight rep for tr turn
restore

end

simulate, r(100):bootbeta
***

Although it makes you wonder why you do not use the -vce(boot)- option directly...


HTH
Martin
_______________________
----- Original Message ----- From: "moleps islon" <moleps2@gmail.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Tuesday, April 14, 2009 9:58 PM
Subject: st: Using -simulate- with returned matrices from estimation commands


I've been fiddling around searching for solutions to this but to no
avail. Is this at all possible?

E.g. program sketch

program a

preserve
bsample
e-command

return beta-matrix
restore

end

simulate beta-matrix,r(100):bootbeta


Regards,

Moleps
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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