my_t_test: T Test Function

Description Usage Arguments Value Examples

Description

This function preforms a one sample t-test.

Usage

1
my_t_test(x, alternative, mu)

Arguments

x

Numeric input of a vector containing a set of data.

alternative

String input indicating the type of hypothesis test.

mu

Numeric input representing the value for the null hypothesis of the mean, defaults to 0.

Value

List output containing the t-statistic, df, alternative, and p-value.

Examples

1
my_t_test(c(10, 15, 14, 16), alternative = "two.sided", mu = 13)

arielle-min/project3package documentation built on March 22, 2021, 1:47 p.m.