<>
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" <[email protected]>
To: <[email protected]>
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/