Learn R Programming

BSDA (version 1.01)

Iqgpa: GPA versus IQ for 12 individuals

Description

Data for Exercises 9.51 and 9.52

Usage

Iqgpa

Arguments

Format

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

IQ

a numeric vector

GPA

a numeric vector

Examples

Run this code
# NOT RUN {
str(Iqgpa)
attach(Iqgpa)
plot(IQ,GPA)
model <- lm(GPA~IQ)
abline(model)
summary(model)
detach(Iqgpa)
remove(model)
# }

Run the code above in your browser using DataLab