Learn R Programming

MPV (version 1.64)

p7.15: Data Set for Problem 7-15

Description

The p7.15 data frame has 6 observations on vapor pressure of water at various temperatures.

Usage

data(p7.15)

Arguments

Format

This data frame contains the following columns:

y

vapor pressure (mm Hg)

x

temperature (degrees Celsius)

Examples

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

Run the code above in your browser using DataLab