Learn R Programming

SenSrivastava (version 2015.6.25)

E9.8: Data on monthly rent, annual income and househould size

Description

The E9.8 data frame has 27 rows and 3 columns.

Usage

data(E9.8)

Arguments

Format

This data frame contains the following columns:

R

a numeric vector, Monthly rent in dollars.

I

a numeric vector, annual income in \(1000\$\).

S

a numeric vector, household size.

Details

Example 9.8 in Sen and Srivastava, page 201.

Examples

Run this code
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()

Run the code above in your browser using DataLab