two_samp_binom: 2-sample z-test with binomial distribution

Description Usage Arguments Value

View source: R/t_tests.R

Description

Given that the samples use a binomial distribution, this function performs a 2-sample z-test

Usage

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
)

Arguments

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

Value

data frame containing p-value, z-score, and result of the hypothesis test


azc242/collegestats documentation built on Dec. 31, 2020, 7:54 p.m.