Assignment 1b
-------------
Introduction
Completing this assignment wil answer the following questions:
How do I start S-PLUS?
How can I read data into a table from an ASCII file?
How can I perform calculations on the data?
How can I transfer material from S-PLUS to Word?
How can I enter data into a table?
How can I create graphics based on the data?
How can I transfer graphics from S-PLUS to Word?
a. Start S-PLUS. Turn the computer and monitor on. Enter your
user name and password to log in. In Windows select SPlus2000.
b. In an experiment a subject reads sentences on the monitor of a
computer. Every time a subject reads a word, he presses a key.
That word disappears and the following word appears just to the
right of where that last word was. At each following key press,
the word then showing again disappears, and the next word appears.
For 24 words the time between key presses is given below in
milliseconds (Source: Edith Kaan & Laurie Stowe, Developing an
Experiment, 1995. Techniques and Design, Klapper vakgroep
Taalwetenschappen, Rijksuniversiteit Groningen):
450 390 467 654 30 542 334 432 421
357 497 493 550 549 467 575 578 342
446 547 534 495 979 479
The data are available in in z:\public\share\heeringa\woord.txt.
Read this ASCII file into S-PLUS. Define the column of the table
and choose a good variable name.
c. Calculate the average, the median and the standard deviation.
These results will appear in the output window.
d. Transfer the results of the calculations to Word.
e. In the Leiden linen industry there are records of how many bolts of
cloth were produced annually in the years 1651 - 1670. The
production figures below are given in thousands of items. (Source:
N. W. Posthumus, De geschiedenis van de Leidsche
lakenindustrie. II. De nieuwe tijd. De lakenindustrie en verwante
industrieen ('s-Gravenhage 1939) 930-931).
95 110 130 115
80 120 130 120
80 120 140 135
85 125 145 135
115 125 120 115
Create a new table and enter this data.
f. Divide the data into five classes: <- 90, 91-105, 106-120, 121-135,
136 ->. Produce a histogram based on this in which each staff of the
histogram corresponds to one class.
g. Transfer the histogram to Word.
h. The Word document contains the results of c. and f. Work on the
document to create a good report. Print the result out and
turn it in (mail box, James Hammerton, 4th floor, central area)