I think there is something I don't understand about how -bootstrap- works.
I have a dataset with 200 observations; one of the variables is height. There are no missing values.
The mean height is 60.5.
When I run
The Observed Coef. of the output is always 60.5.
Since I have used the noisily option, the 10 random draws of 10 observations and the mean height for each draw (repetition) are displayed on the screen. If I use the "saving" option, the resulting file contains the mean produced by each repetition.
How do I get Stata to display the mean of those means? Do you have to open the saved file and take the mean of means?
Can't Stata display that mean in the output of -bootstrap-? I thought that was the whole point.
Thank you.
I have a dataset with 200 observations; one of the variables is height. There are no missing values.
The mean height is 60.5.
When I run
Code:
bootstrap meanHeight=r(mean), size(10) reps(10) noisily: summarize height
Since I have used the noisily option, the 10 random draws of 10 observations and the mean height for each draw (repetition) are displayed on the screen. If I use the "saving" option, the resulting file contains the mean produced by each repetition.
How do I get Stata to display the mean of those means? Do you have to open the saved file and take the mean of means?
Can't Stata display that mean in the output of -bootstrap-? I thought that was the whole point.
Thank you.
Comment