inst/snippets/Example4.20b.R

# a 2-sided p-value is the sum of the values above
prop(~ (prop <= 0.2 | prop >= 0.8), data = RandomizationDist)
# We can also approximate the p-value by doubling one side
2 * prop(~ prop >= 0.80, data = RandomizationDist)
rpruim/Lock5withR documentation built on May 28, 2019, 1:31 a.m.