Learn R Programming

BSDA (version 1.01)

Mathpro: Math proficiency and SAT scores by states

Description

Data for Exercise 9.24, Example 9.1, and Example 9.6

Usage

Mathpro

Arguments

Format

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

state1

a factor with levels Conn D.C. Del Ga Hawaii Ind Maine Mass Md N.C. N.H. N.J. N.Y. Ore Pa R.I. S.C. Va Vt

Sat.M1

a numeric vector

Profic1

a numeric vector

state2

a factor with levels Ala Alaska Ariz Ark Calif Colo Fla Idaho Ill Iowa Kan Ky La Mich Minn Miss Mo Mont N.D. N.M. Neb Nev Ohio Okla S.D. Tenn Texas Utah W.V. Wash Wis Wyo

Sat.M2

a numeric vector

Profic2

a numeric vector

state

a factor with levels Ala Alaska Ariz Ark Calif Colo Conn D.C. Del Fla Ga Hawaii Idaho Ill Ind Iowa Kan Ky La Maine Mass Md Mich Minn Miss Mo Mont N.C. N.D. N.H. N.J. N.M. N.Y. Neb Nev Ohio Okla Ore Pa R.I. S.C. S.D. Tenn Texas Utah Va Vt W.V. Wash Wis Wyo

Sat.M

a numeric vector

Profic

a numeric vector

Group

a numeric vector

Examples

Run this code
# NOT RUN {
str(Mathpro)
attach(Mathpro)
model <- lm(Sat.M1~Profic1)
plot(Profic1,Sat.M1)
abline(model)
model
detach(Mathpro)
remove(model)
# }

Run the code above in your browser using DataLab