Learn R Programming

BSDA (version 1.2.1)

Insulate: Heat loss through a new insulating medium

Description

Data for Exercise 9.50

Usage

Insulate

Arguments

Format

A data frame/tibble with ten observations on two variables

temp

outside temperature (in degrees Celcius)

loss

heat loss (in BTUs)

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

Run this code

plot(loss ~ temp, data = Insulate)
model <- lm(loss ~ temp, data = Insulate)
abline(model, col = "blue") 
summary(model)

if (FALSE) {
library(ggplot2)
ggplot2::ggplot(data = Insulate, aes(x = temp, y = loss)) + 
           geom_point() + 
           geom_smooth(method = "lm", se = FALSE) + 
           theme_bw()
}

Run the code above in your browser using DataLab