statawalk3

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

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

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

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online