Learn R Programming

BSDA (version 1.01)

Tv: Percent of students that watch more than 6 hours of TV per day versus national math test scores

Description

Data for Examples 2.1 and 2.7

Usage

Tv

Arguments

Format

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

State

a factor with levels Alabama Alaska Arizona Arkansas California Colorado Connecticut DC Delaware Florida Georgia Guam Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota Mississippi Missour Montana Nebraska Nevada New Hampshire New Jersey New Mexico New York North Carolina North Dakota Ohio Oklahoma Oregon Pennsylvania Rhode Island South Carolina South Dakota Tennessee Texas Utah Vermont Vir Is Virginia Washington West Virginia Wisconsin Wyoming

percent

a numeric vector

test

a numeric vector

Examples

Run this code
# NOT RUN {
str(Tv)
attach(Tv)
plot(percent,test,col="blue")
cor(percent,test,use="complete.obs")
detach(Tv)
# }

Run the code above in your browser using DataLab