one_proportion_test | R Documentation |
This function will run a simulation-based hypothesis test for a single proportion of successes.
one_proportion_test(
probability_success = 0.5,
sample_size = 5,
summary_measure = c("number", "proportion"),
as_extreme_as,
direction = c("greater", "less", "two-sided"),
number_repetitions = 1,
add_normal = FALSE
)
probability_success |
Value between 0 and 1 representing the null hypothesis value for proportion. |
sample_size |
Number of trials used to compute proportion. |
summary_measure |
Name of summary measure to return from simulations.
Allowed values are
|
as_extreme_as |
Value of observed statistic.
Between 0 and 1 if |
direction |
Direction of alternative hypothesis.
Allowed values are |
number_repetitions |
Number of simulated samples. |
add_normal |
Logical value indicating whether to superimpose a normal curve on the histogram. Defaults to FALSE. |
Returns plot of distribution of simulated statistics, with values as or more extreme than specified value highlighted, and reports proportion of simulations as or more extreme than specified as subtitle on plot.
one_proportion_test(
probability_success = 0.5,
sample_size = 150,
summary_measure = "proportion",
as_extreme_as = 0.65,
direction = "greater",
number_repetitions = 1000
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.