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

st: RE: RE: RE: RE: Bootstrapping and t-tests

From   "Nick Winter" <>
To   <>
Subject   st: RE: RE: RE: RE: Bootstrapping and t-tests
Date   Wed, 12 Jun 2002 13:59:08 -0400

> Ok, thanks to Nick Winters, I have learned something new 

By the way, it is "Winter" -- no "s" -- a pet peeve of mine.

> Warning:  Since ttest is not an estimation command or does 
> not set e(sample), bs has no way to determine
>           which observations are used in calculating the 
> statistics and so assumes that all observations
>           are used.  This means no observations will be 
> excluded from the resampling due to missing values
>           or other reasons.
>           If the assumption is not true, press Break, save 
> the data, and drop the observations that are to
>           be excluded.  Be sure the dataset in memory 
> contains only the relevant data.

On the substance, the warning means that you must ensure there are no
missing observations on your diff variable.  You can do this by typing 

	. count if diff==.

If there are any, you should drop those observations before running your

	. preserve
	. drop if diff==.
	<<run bootstrap>>
	. restore

By the way, you could just use the -summarize- command, rather than the
-ttest-, if all you want is the mean.

Nick Winter

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index