Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: making a dataset of results


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: Re: making a dataset of results
Date   Fri, 16 Dec 2005 07:21:37 -0500

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index