Learn R Programming

MPV (version 1.64)

p2.7: Data Set for Problem 2-7

Description

The p2.7 data frame has 20 observations on the purity of oxygen produced by a fractionation process. It is thought that oxygen purity is related to the percentage of hydrocarbons in the main condensor of the processing unit.

Usage

data(p2.7)

Arguments

Format

This data frame contains the following columns:

purity

oxygen purity (percentage)

hydro

hydrocarbon (percentage)

Examples

Run this code
data(p2.7)
attach(p2.7)
purity.lm <- lm(purity ~ hydro)
summary(purity.lm)
# confidence interval for mean purity at 1% hydrocarbon:
predict(purity.lm,newdata=data.frame(hydro = 1.00),interval="confidence")
detach(p2.7)

Run the code above in your browser using DataLab