Learn R Programming

BSDA (version 1.01)

Energy: Amount of energy consumed by homes versus their sizes

Description

Data for Exercises 2.5, 2.24, and 2.55

Usage

Energy

Arguments

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

Examples

Run this code
# NOT RUN {
str(Energy)
attach(Energy)
plot(Size,kilowatt)
cor(Size,kilowatt)
model <- lm(kilowatt~Size)
plot(Size,resid(model))
detach(Energy)
# }

Run the code above in your browser using DataLab