Description Usage Arguments Value
Given that the samples use a binomial distribution, this function performs a 2-sample z-test
1 2 3 4 5 6 7 8 9 | two_samp_binom(
p1_trials,
p1_successes,
p2_trials,
p2_successes,
H0_diff = 0,
Ha,
alpha = 0.05
)
|
p1_trials |
number of trials in the first group |
p1_successes |
number of successes in the first group |
p2_trials |
number of trails in the second group |
p2_successes |
number of successes in the second group |
H0_diff |
H0 value that tests the difference, defaults to 0 (testing if two samples have equal means |
Ha |
direction of the test. Accepts either ">", "<", or "!=" |
alpha |
significance level, or the probability of making a type 1 error. Defaults to 0.05 |
data frame containing p-value, z-score, and result of the hypothesis test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.