960.390-01, Fall 1999, M 7,8 (6:10-9:00pm)
Meeting dates: 10/25, 11/1, 11/8, 11/15
| Syllabus | Class 1 | Class 2 | Class 3 | Class 4 | Class 5 | Resources | Email mxie@rci.ru tgers.edu
#1: Problem 3.3 on page 33 in the textbook.
#2: Create a set of records in a separate file, 20 records, each on one line. Make sure the first column is strings, and the second column contains numbers.
a) Write a program to read them in, and print them out.
b) Modify the program to read the data in again (into a different data set), skipping the first 5 observations and reading in 10 observations. Print out the resulting data sets.
c) Restore the original program. Read all 20 records in and write them into an external file. The external file should contain the same 20 records but the elements in the first column are numbers and the second column strings.
#3: The file corn.dat contains yearly corn yield and
rainfall measurements in six states from 1890 to 1927 (here is the data description ). Generate descriptive statistics for the corn yield and rainfall measurements, using year as ID. Use the title
and label statements. Try to understand your output.
Questions or comments on this page should be sent to
mxie@rci.rutgers.edu