Learn R Programming

SMPracticals (version 1.3-1)

forbes: Atmospheric Pressure and Boiling Point in the Alps

Description

James Forbes measured the atmospheric pressure and boiling point of water at 17 locations in the Alps.

Usage

data(forbes)

Arguments

source

Atkinson, A. C. (1985) Plots, Transformations, and Regression. Oxford University Press.

Examples

Run this code
data(forbes)
plot(forbes)
fit <- lm(bp~pres,data=forbes)
fit
plot(forbes$pres,resid(fit))  # model OK?
# try refitting with transformation
fit <- lm(log(bp)~log(pres),data=forbes)

Run the code above in your browser using DataLab