my_t.test: t-test

Description Usage Arguments Value Examples

View source: R/my_t.test.R

Description

This function applies the t-test

Usage

1
my_t.test(x, alternative, mu)

Arguments

x

Vector

alternative

Character indicating

mu

Numeric indicating

Value

List of test statistic, degrees of freedom, alternative hypothesis, and p-value

Examples

1
2
x <- rnorm(10, mean = 0, sd = 1)
my_t.test(x, "two.sided", 1)

kobesar/mypackage documentation built on Dec. 21, 2021, 7:40 a.m.