my_t.test: t-test function

Description Usage Arguments Value Examples

View source: R/my_t.test.R

Description

This function performs t-tests.

Usage

1
my_t.test(x, alternative, mu)

Arguments

x

Numeric vector of data.

alternative

String that specifies the alternative hypothesis and accepts "two.sided", "less", or "greater".

mu

Numeric value that specifices the null hypothesis.

Value

List that includes a numeric test statistic, the degrees of freedom, the alternative hypothesis parameter, and the numeric p-value.

Examples

1
2
my_t.test(x = rnorm(50, 0, 1), alternative = "less", mu = 0.3)
my_t.test(x = mtcars$wt, alternative = "greater", mu = 3)

anikalindley/project3package documentation built on Dec. 19, 2021, 3:37 a.m.