View source: R/proportion.test.twosample.exact.simple.R
proportion.test.twosample.exact.simple | R Documentation |
Calculates a two-sample proportion test to determine if a samples come from different populations. Fisher Exact test is used for test computation.
proportion.test.twosample.exact.simple(
sample.proportion.g1 = NA,
sample.size.g1,
np.g1 = sample.proportion.g1 * sample.size.g1,
sample.proportion.g2 = NA,
sample.size.g2,
np.g2 = sample.proportion.g2 * sample.size.g2,
alternative = c("two.sided", "less", "greater"),
conf.level = 0.95
)
sample.proportion.g1 |
Scalar/numeric - Group 1 - sample proportion between 0 and 1 |
sample.size.g1 |
Scalar/numeric - Group 1 - sample size. |
np.g1 |
Scalar/numeric - sample size multipled by sample proportion for group 1. Required if sample.proportion not specified. |
sample.proportion.g2 |
Scalar/numeric - Group 2 - sample proportion between 0 and 1 |
sample.size.g2 |
Scalar/numeric - Group 2 - sample size. |
np.g2 |
Scalar/numeric - sample size multipled by sample proportion for group 2. Required if sample.proportion not specified. |
alternative |
The alternative hypothesis to use for the test computation. |
conf.level |
The confidence level for this test, between 0 and 1. |
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.