Lecture 03b - What are we doing here? We're creating a...

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

View Full Document Right Arrow Icon
What are we doing here? We're creating a 'do-file,’ which is just a program 1 that we will later toss into Stata, and make Stata run a bunch of commands on either data that we make up or data that we import to (or open in) Stata. Why have a program? It is possible to do everything shown in this presentation 'interactively' in Stata - that is, I can sit and type one command at a time, and Stata will do each command as soon as I hit enter. Sometimes that's not a bad idea if I just want to know something quickly, and don't care whether I remember the results or not. But in general, it's nice to have a written record of exactly what you did and what the outcome was, so you can be sure that your results are reproducible and reviewable by yourself and others. Writing a 'nice' do-file is a skill that takes time to develop, but you'll get the knack as we progress in the course. Trial and error is the dominant way to learn these things - through struggle comes enlightenment, or at least different struggles.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Make sure of the version of Stata you use. Mann appears to have replaced Stata 9 with Stata 10 on its computers, but be aware that Stata 9 will not open Stata 10 files.
Background image of page 2
In this example, each file lives in the folder “PAM 3300” on a flash drive (F:\). 3
Background image of page 3

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

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

Page1 / 16

Lecture 03b - What are we doing here? We're creating a...

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

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