Using Nick Cox's matmap,
qui foreach var of varlist x1935 - x1942 {
bootstrap: ratio `var' y
mat B=nullmat(B)\e(b)
mat V=nullmat(V)\e(V)
}
matmap V se, m(sqrt(@))
mat stephen=B,se
mat list stephen
Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html
On Dec 16, 2005, at 2:33 AM, statalist-digest wrote:
Here's the basic program I'm using to get the ratios now:
foreach var of varlist x1 - x10 {
bootstrap: ratio `var' y
}
The output I want is in the matrices e(b) and e(se) after each loop.
How can I save them so that I have two columns with 10 obs each?
*
* 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/