View source: R/proportion.test.onesample.approximate.simple.R
proportion.test.onesample.approximate | 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.approximate(
x,
success.value = 1,
null.hypothesis.proportion = 0.5,
alternative = c("two.sided", "less", "greater"),
conf.level = 0.95,
continuity.correction = T
)
proportion.test.onesample.approximate.simple(
sample.proportion,
sample.size,
null.hypothesis.proportion = 0.5,
alternative = c("two.sided", "less", "greater"),
conf.level = 0.95,
continuity.correction = T
)
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. |
continuity.correction |
Scalar/logical - if TRUE, apply the continuity correction to the calculation |
sample.proportion |
Scalar/numeric - sample proportion between 0 and 1 |
sample.size |
Scalar/numeric - sample size. |
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.