Learn R Programming

BSDA (version 1.01)

Cigarett: Effect of mother's smoking on birth weight of newborn

Description

Data for Exercise 2.27

Usage

Cigarett

Arguments

Format

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

cigarett

a numeric vector

weight

a numeric vector

Examples

Run this code
# NOT RUN {
str(Cigarett)
attach(Cigarett)
plot(cigarett,weight)
model <- lm(weight~cigarett)
abline(model)
cor(weight,cigarett)
detach(Cigarett)
# }

Run the code above in your browser using DataLab