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: Re: st: Bootstrapping standard errors of regression coefficients whilst applying bysort command
From
Clyde B Schechter <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Re: st: Bootstrapping standard errors of regression coefficients 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/