my_t.test: T-test function

Description Usage Arguments Value Examples

View source: R/my_t.test.R

Description

This function conducts a t-test

Usage

1
my_t.test(x, alt, m)

Arguments

x

Numeric vector of data.

alt

Character string specifying the alternative hypothesis. This only accepts "two.sided", "less", or "greater".

m

Numeric number indicating the null hypothesis value of the mean.

Value

List of elements include test statistic, degree of freedom, value of alt, numeric p-value.

Examples

1
my_t.test((rnorm(10, mean = 0, sd = 1)), "greater", m = 0)

chen1649/mypackage documentation built on Dec. 19, 2021, 3:03 p.m.