conduct_t_test: Conduct a t-test using provided test statistic data.

View source: R/conduct_t_test.R

conduct_t_testR Documentation

Conduct a t-test using provided test statistic data.

Description

This function conducts a t-test, exports the results, exports what a user would need to type into R to get the same result, and produces a visualization.

Usage

conduct_t_test(t, df, type)

Arguments

t

the t-statistic you are testing

df

the degrees of freedom in your sample

type

the type of test. Options are 'less', 'greater', and 'both'

Examples

> conduct_t_test(3,10,"greater") 
$prob
[1] 0.006671828

$p_value_type
[1] "1-pt(3,10)"

jrpriceUPS/Math160UPS documentation built on April 28, 2024, 12:41 p.m.