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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.