Learn R Programming

BSDA (version 1.01)

Correlat: Exercise to illustrate correlation

Description

Data for Exercise 2.23

Usage

Correlat

Arguments

Format

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

X

a numeric vector

Y

a numeric vector

Examples

Run this code
# NOT RUN {
str(Correlat)
attach(Correlat)
plot(X,Y)
model <- lm(Y~X)
abline(model)
detach(Correlat)
# }

Run the code above in your browser using DataLab