Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: Re: st: Bootstrapp​ing standard errors of regression coefficien​ts whilst applying bysort command


From   Clyde B Schechter <clyde.schechter@einstein.yu.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Re: st: Bootstrapp​ing standard errors of regression coefficien​ts whilst applying bysort command
Date   Sat, 28 Apr 2012 23:06:19 +0000

If I understand what George Murray wants to do, the following should work:

levelsof V0, local(v0_levels)

foreach v0 of local v0_levels {
     bootstrap, reps(100) seed(1): reg V1 V2 V3 V4 if V0 == `v0'
}

Hope this helps.

Clyde Schechter
Albert Einstein College of Medicine
Bronx, NY, USA

*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index