






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Instructions and data for completing homework assignment 2 in the statistics 402/502 course at carnegie mellon university. Students are required to read in the backache data from a given url, construct relevant variables, generate descriptive statistics, and create plots to analyze trends and relationships in the data.
Typology: Assignments
1 / 12
This page cannot be seen from the preview
Don't miss anything!







M:\baileraj\Classes\Fall 2007\sta402\hw\Homework-02-08sep08.doc (*.pdf) Assigned: 08 Sep. 2008 Due: 15 Sep. 2008
Backache data from http://lib.stat.cmu.edu/datasets/backache Data file: This data from "Problem-Solving" on "backache in pregnancy" is in somewhat different format from that listed in the book. Each integer is preceded by a space. This makes it easier to read. Each line is split in two separated by an ampersand. Each line also has a full stop (or period) at the end of each line which should be removed. 1 1 0 26 1.52 54.5 75.0 3.35 0 1 0 0 0 0 0 0 0.& 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0. 2 3 0 23 1.60 59.1 68.6 2.22 1 2 1 0 0 1 0 0 0.& 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0. 3 2 6 24 1.57 73.2 82.7 4.15 0 1 0 0 0 1 1 0 1.& 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0. 4 1 8 22 1.52 41.4 47.3 2.81 0 1 0 0 0 0 0 0 0.& 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0. 5 1 0 27 1.60 55.5 60.0 3.75 1 2 0 0 0 0 0 0 0.& 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0. 6 1 7 32 1.75 70.5 85.5 4.01 2 4 0 0 0 0 0 0 0.& 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0. 7 1 0 24 1.73 76.4 89.1 3.41 0 1 0 0 0 0 0 0 0.& 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0. 8 1 8 25 1.63 70.0 85.0 4.01 1 1 0 0 0 1 0 0 0.& 0 1 0 0 0 0 0 0 0 0 0 0 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