Learn R Programming

MPV (version 1.64)

p7.17: Data Set for Problem 7-17

Description

The p7.17 data frame has 6 observations on vapor pressure of water at various temperatures. This data set is the same as p7.15 which was used for exercise 7-15 in the third edition of MPV.

Usage

data(p7.17)

Arguments

Format

This data frame contains the following columns:

y

vapor pressure (mm Hg)

x

temperature (degrees Celsius)

Examples

Run this code
y.lm <- lm(y ~ x, data=p7.17)
plot(y ~ x, data=p7.17)
abline(coef(y.lm))
plot(y.lm, which=1)

Run the code above in your browser using DataLab