my_t_test: T-Test function

Description Usage Arguments Value Examples

View source: R/my_t_test.R

Description

This function conducts a t-test on given data

Usage

1
my_t_test(x, alternative, mu)

Arguments

x

Data on which t-test is to be conducted.

alternative

String of "two.sided", "less", or "greater" to designate alternative hypothesis.

mu

Numeric input designating the value of the null hypothesis.

Value

List containing the numerics representing test statistic and degrees of freedom, the alternative hypothesis, and a numeric of the p-value

Examples

1
2
my_t_test(my_gapminder$lifeExp, "two.sided", 60)
my_t_test(1:100, "two.sided", 60)

johnbdonovan/myFirstPackage documentation built on March 18, 2020, 12:12 a.m.