inst/snippets/Example5.3.R

prop(child ~ parents, data = Smoking)
p.1 <- 0.548
p.2 <- 0.451
p.hat <- prop(~ child, data = Smoking); p.hat # pooled prop of success
n.1 <- 565
n.2 <- 3602
rpruim/ISIwithR documentation built on May 28, 2019, 1:30 a.m.