Learn R Programming

BSDA (version 1.2.1)

Correlat: Exercise to illustrate correlation

Description

Data for Exercise 2.23

Usage

Correlat

Arguments

Format

A data frame/tibble with 13 observations on two variables

x

a numeric vector

y

a numeric vector

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(y ~ x, data = Correlat)
model <- lm(y ~ x, data = Correlat)
abline(model)
rm(model)

Run the code above in your browser using DataLab