View source: R/proportion.test.onesample.exact.simple.R
proportion.test.onesample.exact | R Documentation |
Calculates a one-sample proportion test to determine if a sample proportion is statistically different from an assumed population proportion.
proportion.test.onesample.exact(
x,
success.value = 1,
null.hypothesis.proportion = 0.5,
alternative = c("two.sided", "less", "greater"),
conf.level = 0.95
)
proportion.test.onesample.exact.simple(
sample.proportion = NA,
sample.size = NA,
np = sample.size * sample.proportion,
null.hypothesis.proportion = 0.5,
alternative = c("two.sided", "less", "greater"),
conf.level = 0.95
)
x |
Vector - Sample Values |
success.value |
Scalar - Value compared with x using == operator to determine if a trial is a "success" |
null.hypothesis.proportion |
Scalar/numeric - assumed population proportion. |
alternative |
The alternative hypothesis to use for the test computation. |
conf.level |
The confidence level for this test, between 0 and 1. |
sample.proportion |
Scalar/numeric - sample proportion between 0 and 1. Required if np not specified. |
sample.size |
Scalar/numeric - sample size. Required. |
np |
Scalar/numeric - sample size multipled by sample proportion. Required if sample.proportion not specified. |
Hypothesis test result showing results of test.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.