my_t.test: My_t_test

Description Usage Arguments Value Examples

View source: R/my_t.test.R

Description

This function runs a left, right, and two-sided t test.

Usage

1
my_t.test(x, alternative, mu)

Arguments

x

Numeric input data to use in your function.

alternative

Character specifying what the alternative hypothesis is: less, greater,two.sided.

mu

The null hypothesis or your test.

Value

Returns a list with the t.test output and a model table and code Hypothesis, T-statistic, DF, P-value. It also returns a call of the hypothesis tested.

Examples

1
2
my_t.test(gapminder$lifeExp,alternative = "two.sided",mu = 60)
my_t.test(gapminder$lifeExp,alternative = "less",mu = 60)

theloniousgoerz/tgpackage documentation built on Dec. 23, 2021, 9:54 a.m.