my_t_test: Sample t-test Function

Description Usage Arguments Value Examples

View source: R/my_t_test.R

Description

This function does the same as the built-in function t.test().

Usage

1
my_t_test(x, alternative, mu)

Arguments

x

A numeric vector of data.

alternative

A string that specify the alternative hypothesis.

mu

A number that indicates the null hypothesis value of the mean.

Value

A list with the following elements: test statistics, degree of freedom parameter of alternative, numeric p-value.

Examples

1
my_t_test(c(2, 5, 3), "less", 2)

carldmyers/PROJECT3 documentation built on March 25, 2020, 12:11 a.m.