two_samp_test_equal_var: Runs a 2-sample t test assuming equal variances

Description Usage Arguments Value

View source: R/t_tests.R

Description

Given that the variances are equal, the degrees of freedom calculation is much simpler. This hypotest formula takes advantage of the it and performs a 2-sample t-test

Usage

1
two_samp_test_equal_var(samp1, samp2, H0_diff = 0, Ha, alpha = 0.05)

Arguments

samp1

data for the first sample

samp2

data for the second sample

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 and result of the hypothesis test


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