my_t.test: t-Test Application

Description Usage Arguments Value Examples

View source: R/my_t_test.R

Description

This function performs a one sample t-test.

Usage

1
my_t.test(x, alternative, mu)

Arguments

x

Numeric vector representing sample data values.

alternative

String that indicates the alternative hypothesis of the t-test, must be one of "two.sided", "greater" or "less".

mu

Numeric indicating the value of the null hypothesis value of the mean.

Value

List with elements test_stat, the value of the t-statistic, df, the degrees of freedom for the t-statistic, alternative, the value of the parameter alternative, and p_val, the numeric p-value that was calculated by the t-test.

Examples

1
2
my_t.test(1:10, "two.sided", 8)
my_t.test(1:10, "less", 3)

marquesjchacon/myfirstpackage documentation built on April 2, 2020, 9:42 p.m.