# 4-6-09 - Type gen time=_n 1958 “n” is an index that...

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

Economic Statistics – Class Notes – 4/6/09 EXAM #3 Material Economic Report of the President: Downloadable Reports Download Entire Reports NO Statistical Tables YES Go ahead and choose 2009 For our purposes, we are interested in: Copy Gross Domestic Product and the column right next to it (Total product) Paste in Excel How to transform into the format needed for Stata Format the columns for General Save the data in CSV comma delineated Hit preserve (same thing as save) Go to the command box at the bottom Type: rename var1 gdpgro Type: rename var2 congro Type: regress (dependent variable) congro Type: scatter gdpgro congro (graph is generated) Copy graph and paste it in a word document or into an excel document

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.

Unformatted text preview: Type: gen time=_n+1958 “n” is an index that rolls with the observations (n goes from 1 to 49 in this case) First year was 1959 When n = 1 and you add it to 1958, you get 1959 Type: gen dumrec=0 Always use extremely short names for your variables Always use lowercase letters dumrec = dummy variable for recession We use 0’s because that’s what a dummy variable is by default (default value) Go to the Data editor and replace all of the dumrec values of 0 with a 1 for all of the years there was a recession Hit pageup to bring your previous command up Type: Regress congro gdpgro dumrec • THE EXERCISE IS DUE FRIDAY:...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

4-6-09 - Type gen time=_n 1958 “n” is an index that...

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

View Full Document
Ask a homework question - tutors are online