E9.8 | R Documentation |
The E9.8
data frame has 27 rows and 3 columns.
data(E9.8)
This data frame contains the following columns:
a numeric vector, Monthly rent in dollars.
a numeric vector, annual income in 1000\$
.
a numeric vector, household size.
Example 9.8 in Sen and Srivastava, page 201.
Selected by one of the authors from a much larger data set, collected from several sources about 20 years ago.
data(E9.8)
attach(E9.8)
E9.8.m1 <- lm(R ~ I + S, data=E9.8)
summary(E9.8.m1)
plot(I, resid(E9.8.m1, type="partial")[,"I"])
plot(S, resid(E9.8.m1, type="partial")[,"S"])
detach()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.