



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
Material Type: Lab; Class: Introduction to Statistical Methods for Life and Health Sciences; Subject: Statistics; University: University of California - Los Angeles; Term: Fall 2008;
Typology: Lab Reports
1 / 6
This page cannot be seen from the preview
Don't miss anything!




Stat 13 Fall 2008 Nesbitt 2C
Lab 1 - Introduction to Stata
use http://www.stat.ucla.edu/labs/datasets/smallcen.dta
To get a list of more than one variable at a time:
list gender income
sort age
And then type
list age income in 1/
summarize
summarize income
Q: What is the typical income?
mvdecode income, mv(0=.a)
Q: How did this change the summarize income output?
summarize income if gender== summarize income if gender==
Note: In this dataset, men are coded with a 1 and women are coded with a 2. Q: What differences or similarities do you notice about the income variable for men and women?
After you make your plot, you have numerous options for saving it.
Note: AGAIN, if you are working in Pages, make sure you save and export your document as a “Word” or .doc file if you want to attach it to your email and be able to open it in Microsoft Word as an editable file when you get home to your non-Mac computer.
use describe list sort summarize mvdecode hist, by gen drop clear
in if by
On Your Own Assignment: Due Nov 4th. Prepare a typed report comparing Income w/ respect to Race. Be sure to include appropriate graphs where necessary.