my_t.test: T-test

Description Usage Arguments Value Examples

View source: R/my_t.test.r

Description

This function performs a one sample t-test in R.

Usage

1
my_t.test(x, alternative, mu)

Arguments

x

a numeric vector of data

alternative

a character string specifying the alternative hypothesis.

mu

a number indicating the null hypothesis value of the mean.

Value

list containing the test statistic, degrees of freedom, value of the parameter alternative, and the p-value

Examples

1
2
x <- 1:10
my_t.test(x, "less", 5)

jacklorrengriffin/myfirstpackage documentation built on Dec. 20, 2021, 8:05 p.m.