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

st: Re: statalist-digest V4 #2189


From   Steve Vaisey <[email protected]>
To   [email protected]
Subject   st: Re: statalist-digest V4 #2189
Date   Sat, 17 Dec 2005 10:55:18 -0500

This looks great.  Thanks!

====================================================
Stephen B. Vaisey
National Science Foundation Graduate Research Fellow
Caroline H. and Thomas S. Royster, Jr. Fellow
Department of Sociology
University of North Carolina, Chapel Hill
CB #3210, Hamilton Hall
Chapel Hill, NC 27599
====================================================


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

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