Sleep deprivation, CA vs. OR, Part I: According to a report on sleep deprivation by the Centers for Disease Control and Prevention, the proportion of California residents who reported insuffient rest or sleep during each of the preceding 30 days is 8.0%, while this proportion is 8.8% for Oregon residents.These data are based on simple random samples of 11,545 California and 4,691 Oregon residents. Calculate a 95% confidence interval for the difference between the proportions of Californians and Oregonians who are sleep deprived and interpret it in context of the data.
Ans)
pooled <- (.08*11545 + .088*4691)/(11545 + 4691)
SE <- sqrt(pooled/11545 + pooled/4691)
margin <- 1.96 * SE
lower <- .008 - margin
upper <- .008 + margin
(interval<-c(lower,upper))
## [1] -0.001736344 0.017736344
Ci is -.0015 to .0175. We can say that with a 95% confidence level that the proportions are not statistically different between California and Oregon.