Gpa {BSDA}R Documentation

High school GPA versus college GPA

Description

Data for Exercise 2.13

Usage

Gpa

Format

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

HSGPA
a numeric vector
CollGPA
a numeric vector

Source

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Duxbury

Examples

str(Gpa)
attach(Gpa)
plot(HSGPA,CollGPA)
model <- lm(CollGPA~HSGPA)
abline(model)
model
r <- resid(model)
yhat <- fitted(model)
Table2.1 <- cbind(HSGPA,CollGPA,yhat,r)
Table2.1
remove(r,yhat,model,Table2.1)
detach(Gpa)

[Package BSDA version 0.1 Index]