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)

Try the Lock5withR package in your browser

Any scripts or data that you put into this service are public.

Lock5withR documentation built on May 2, 2019, 3:43 p.m.