statawalk3

# statawalk3 - Stata Walkthrough#3 Sampling Distributions We...

This preview shows pages 1–2. Sign up to view the full content.

Stata Walkthrough #3: Sampling Distributions We are going to create a bunch of simulated random samples. Here s the scenario: X is a random variable, which ( in truth ) is distributed with mean zero and standard deviation of one. Each of our samples will consist of ten observations of X , which we will call x1 , x2 , x3 , x4 , x5 , x6 , x7 , x8 , x9 , and x10 . We will create 1000 samples like this. Keep in mind that for this experiment, each observation in Stata is a different sample. In reality, as a researcher, you would have only one of these samples. However, what we are trying to see if what would happen if a thousand researchers collected a thousand random samples, and each researcher created his own estimate of the mean and a confidence interval for this estimate. 1 Just as a note, any command listed in italics is something that I will not expect you to commit to memory. First, create your 1000 samples: drawnorm x1 x2 x3 x4 x5 x6 x7 x8 x9 x10, n(1000) Each researcher has been asked to come up with an estimate of the mean, and a confidence interval for your estimate. You can calculate the mean of each

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 03/19/2010 for the course ECON 400 taught by Professor Turchi during the Spring '08 term at UNC.

### Page1 / 3

statawalk3 - Stata Walkthrough#3 Sampling Distributions We...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online