ASSIGNMENTS AND READINGS
For Jan 25:
| Column | Name | Description |
| 1 | state | State name |
| 2 | abbrev | State abbreviation |
| 3 | wellbeing | Average value of well-being index for persons surveyed in the state. The well-being index is computed from 40 questions asked about the person’s individual life situation, work environment, access to life’s necessities such as food, healthy behavior, physical health status, and emotional health status. Higher values are said to indicate higher “well-being.” |
| 4 | income | Per capita personal income, in 2008 (dollars). This is the total personal income for the state divided by the number of residents. |
| 5 | HHinc | Median household income, in 2007 (dollars) |
| 6 | Walmart | Number of Walmart stores in state per 100,000 people |
| 7 | foreign | Percent of population that is foreign born |
| 8 | unemp | Unemployment rate, 2006 |
| 9 | obesity | percent of population who are obese |
| 10 | smoking | adult smoking rate, in percent |
| 11 | AIDS | AIDS case rate per 100,000 population, 2007 |
The data are in .csv (comma-delimited) format. You can read them in R using the command
well <- read.csv(file.choose(),header=T)
You can create a data structure with only the numeric columns by using the command
welldata <- well[,3:11]
This makes it easier to construct plots and compute correlations.
For Mar 22:
In-class activities, Mar 24:
For Mar 29:
For Apr 12:
Exam 2 (take-home). Due Apr 28
Exam 3 (final exam).
In class on Monday, May 10, 12:10-2:00 pm.
Bring your output from the data analysis to the exam. The
data analysis is described
in "STP 429 Final Exam Instructions" on the restricted page of the website.