Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: bootstrap means of several variables in one command


From   "Mitchell F. Berman" <[email protected]>
To   Stata List Server <[email protected]>
Subject   st: bootstrap means of several variables in one command
Date   Wed, 26 Mar 2014 14:28:02 -0400

bootstrap mean1=r(mean):sum var1, meanonly        works fine

but I don't see a way to do this for 2 or more variables, since
r(mean) after running
sum var1 var2
has only the mean for var2.

mean var1 var2
produces a matrix e(b) with the two means
but I can't get bootstrap to accept this ("matrices not allowed").

I'm sure there's a simple way to do this.

Thanks for your consideration.

Mitchell Berman
Columbia University

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index