Learn R Programming

BSDA (version 1.01)

Lifespan: Life span of electronic components used in a spacecraft versus heat

Description

Data for Exercise 2.4, 2.37, and 2.49

Usage

Lifespan

Arguments

Format

A data frame with 6 observations on the following 4 variables.

heat

a numeric vector

life

a numeric vector

RESI1

a numeric vector

FITS1

a numeric vector

Examples

Run this code
# NOT RUN {
str(Lifespan)
attach(Lifespan)
plot(heat,life)
model <- lm(life~heat)
model
resid(model)
sum((resid(model))^2)
anova(model)
# plot(model)  # Used for diagnostic purposes
detach(Lifespan)
# }

Run the code above in your browser using DataLab