Learn R Programming

BSDA (version 1.01)

Nicotine: Nicotine content versus sales for 8 major brands of cigarettes

Description

Data for Exercise 9.21

Usage

Nicotine

Arguments

Format

A data frame with 8 observations on the following 2 variables.

nicotine

a numeric vector

sales

a numeric vector

Examples

Run this code
# NOT RUN {
str(Nicotine)
attach(Nicotine)
model <- lm(sales~nicotine)
summary(model)
detach(Nicotine)
remove(model)
# }

Run the code above in your browser using DataLab