# Re: st: boostrap with stata (elementary question)

 From "Clive Nicholas" To statalist@hsphsun2.harvard.edu Subject Re: st: boostrap with stata (elementary question) Date Thu, 18 Aug 2005 12:33:05 +0100 (BST)

```Nicolas A. Roys wrote:

> I want to bootstrap the variance of the standard deviation of "ice" and
> the standard deviation of "ich"
> so I think the stata command is simply :
> bs "summarize ice, detail" "r(sd)", rep(1000)
> bs "summarize ich, detail" "r(sd)", rep(1000)
> but how can I can bootstrap the variance of the ratio
> standard deviation of "ice" divided by standard deviation of "ich" ?

Perhaps I'm missing something obvious, but I don't see the need for any
further -bootstrap-ping. All I think you need do is the following:

(1) -generate- a new variable for the ratio of ("ice"/"ich");
(2) *then* -summarize- that variable: since it gives the standard
deviation, all you need do is square it to get the variance of that
ratio.

By the way, as Nick Cox has counselled to the list on various occasions,
it's not a bright idea to say that you're asking an 'elementary' question
to Statalist. Such posts often get deleted on sight, because it suggests
that the answer is also elementary, indeed so elementary that you didn't
really need to ask the list in the first place!

Hope that helps.

CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e: clive.nicholas@ncl.ac.uk
Newcastle University  |http://www.ncl.ac.uk/geps

Whereever you go and whatever you do, just remember this. No matter how
many like you, admire you, love you or adore you, the number of people
turning up to your funeral will be largely determined by local weather
conditions.

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