Koofers

Lecture Notes for SYA 6933 - MEDICAL SOCIOLOGY at Florida State (FSU)

Assignment Information

Material Type:Assignment 4
Professor:Staff
Class:SYA 6933 - MEDICAL SOCIOLOGY
Subject:SOCIOLOGICAL ANALYSIS
University:Florida State University
Term:--
Login / Sign Up to View Document
Preview Page 1Preview Page 2Preview Page 3Preview Page 4Preview Page 5Preview Page 6

Sample Document Text

. doedit X:\sya6933\hw4\hw4.do . do "X:\sya6933\hw4\STD00000000.tmp" . /******************* > HW#4: Question 1 > *****************/ . webuse set http://cdph.fsu.edu/sya6933/week8 (prefix now "http://cdph.fsu.edu/sya6933/week8") . webuse example9,clear . list +-------------------------+ | hid sex year inc | |-------------------------| 1. | 1 f 90 3200 | 2. | 1 f 91 4700 | 3. | 1 m 90 4500 | 4. | 1 m 91 4600 | 5. | 2 f 90 2350 | |-------------------------| 6. | 2 f 91 4500 | 7. | 2 m 90 5600 | 8. | 2 m 91 6500 | +-------------------------+ . /***long long to wide(sex) wide(year)***/ . reshape wide inc,i(hid sex) j(year) /**Step 1: reshape it to long(sex) wide(year) first**/ (note: j = 90 91) Data long -> wide ----------------------------------------------------...