my_t_test2: T-test Function

Description Usage Arguments Value Examples

View source: R/my_t_test2.R

Description

This function runs a single or double tailed t test on provided data.

Usage

1
my_t_test2(x, alternative = c("two.sided", "less", "greater"), mu)

Arguments

x

Numeric vector the data is saved into.

alternative

Character string equal to "two.sided", "less", or "greater".

mu

Numeric input that xhat will be compared to.

Value

Returns a list of the t-value, degrees of freedom, alternative value, and p-value.

Examples

1
my_t_test2(x, "two.sided", 0)

amakinney/Stat302Package documentation built on Dec. 19, 2021, 1:37 a.m.