forbes | R Documentation |
James Forbes measured the atmospheric pressure and boiling point of water at 17 locations in the Alps.
data(forbes)
A data frame with 17 observations on the following 2 variables.
Boiling point (Fahrenheit)
Pressure (inches of mercury)
Atkinson, A. C. (1985) Plots, Transformations, and Regression. Oxford University Press.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.