Energy {BSDA}R Documentation

Amount of energy consumed by homes versus their sizes

Description

Data for Exercises 2.5, 2.24, and 2.55

Usage

Energy

Format

A data frame with 12 observations on the following 5 variables.

Size
a numeric vector
kilowatt
a numeric vector
SRES1
a numeric vector
FITS1
a numeric vector
Residuals
a numeric vector

Source

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Duxbury

Examples

str(Energy)
attach(Energy)
plot(Size,kilowatt)
cor(Size,kilowatt)
model <- lm(kilowatt~Size)
plot(Size,resid(model))
detach(Energy)

[Package BSDA version 0.1 Index]