William Matsuoka
  • Introduction
  • Topics
  • Stata
  • Teaching
    • ECON 641L
    • ECON 640L >
      • Econ-Data
  • Blog
  • About

Econ 640 Data

Data

​codebook:
1-10 Date
12-16 Time
17-20 Temperature (F*100)
21-22 Relative Humidity (%*100)
23-26 Sea Pressure (Inches*100)
27-28 Status

knkx.txt
File Size: 213 kb
File Type: txt
Download File

You are to create a .dct file (see help infix) containing the dictionary information for the file knkx.txt.

Once this is done, bring in the data.  Drop any observations that did not seem to import correctly.

When I say make, it means either make a new variable or keep an existing variable after the infix command:

Make a Date variable - Stata date %td format
Make a Time variable - string format
Make a Temperature variable - in Fahrenheit (not F*100)
Make a Humidity variable - in % (not %*100)
Make a Pressure variable - in inches (not inches*100)
Make a status variable.

Create a clock variable that contains information for both date and time. (see clock())
Generate a day of week variable.

Find the average, minimum, and maximum temperature by Month and Day of Week so long as your status is okay.
Reference: UCLA
Proudly powered by Weebly
  • Introduction
  • Topics
  • Stata
  • Teaching
    • ECON 641L
    • ECON 640L >
      • Econ-Data
  • Blog
  • About