E1.20 | R Documentation |
The E1.20
data frame has 13 rows and 7 columns.
data(E1.20)
This data frame contains the following columns:
a character vector, name of state.
a numeric vector, Physical Quality of Life Index, a measure of average wealth.
a numeric vector, combined infant mortality rate.
a numeric vector, rural male infant mortality rate.
a numeric vector, rural female infant mortality rate.
a numeric vector, urban male infant mortality rate.
a numeric vector, urban female infant mortality rate.
Dr. T.N.K.Raju, Department of Neonatology, University of Illinois at Chicago.
data(E1.20)
## Some data reorganization before analysis:
## Maybe reshape could have been used here?
e1.20 <- data.frame(rbind(as.matrix(E1.20[,c(2,4)]),
as.matrix(E1.20[,c(2,5)]),
as.matrix(E1.20[,c(2,6)]),
as.matrix(E1.20[,c(2,7)])),row.names=1:52)
attr(e1.20,"names")[[2]] <- "IMR"
e1.20$Female <- c(rep(0,13), rep(1,13),rep(0,13),rep(1,13))
e1.20$Urban <- c(rep(0,26),rep(1,26))
## Now the analysis can start.
summary(e1.20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.