Learn R Programming

BSDA (version 1.01)

Indian: Educational attainment versus per capita income and poverty rate for American indians living on reservations

Description

Data for Exercise 2.95

Usage

Indian

Arguments

Format

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

Reserv

a factor with levels Blackfeet Fort Apache Gila River Hopi Navajo Papago Pine Ridge Rosebud San Carlos Zuni Pueblo

highsch

a numeric vector

income

a numeric vector

poverty

a numeric vector

Examples

Run this code
# NOT RUN {
str(Indian)
attach(Indian)
par(mfrow=c(1,2))
plot(highsch,income,xlab="Percent High School Graduates", ylab="Per capita income")
plot(highsch,poverty,xlab="Percent High School Graduates", ylab="Poverty rate")
par(mfrow=c(1,1))
cor(cbind(highsch,income,poverty))
detach(Indian)
# }

Run the code above in your browser using DataLab