Data used in Exercise 8.51
Abortion
A data frame with 51 observations on the following 10 variables.
a factor with levels alabama
alaska arizona arkansas california
colorado connecticut delaware dist of columbia
florida georgia hawaii idaho illinois
indiana iowa kansas kentucky louisiana
maine maryland massachusetts michigan
minnesota mississippi missouri 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 virginia washington
west virginia wisconsin wyoming
a factor with levels midwest northeast
south west
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a factor with levels Low and High
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Duxbury
T1 <- xtabs(~region + rate, data = Abortion) T1#> rate #> region High Low #> midwest 3 9 #> northeast 5 6 #> south 7 8 #> west 6 7chisq.test(T1)#> Warning: Chi-squared approximation may be incorrect#> #> Pearson's Chi-squared test #> #> data: T1 #> X-squared = 1.6992, df = 3, p-value = 0.6371 #>