Learn R Programming

BSDA (version 1.01)

Gym: Children's age versus number of completed gymnastic activities

Description

Data for Exercises 2.21, 9.14, and 9.32

Usage

Gym

Arguments

Format

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

age

a numeric vector

number

a numeric vector

x.

a numeric vector

Examples

Run this code
# NOT RUN {
str(Gym)
attach(Gym)
plot(age,number)
model <- lm(number~age)
abline(model)
cor(age,number)
detach(Gym)
# }

Run the code above in your browser using DataLab