calc_p_val: Calculate P-value from T-statistic

View source: R/misc_functions.R

calc_p_valR Documentation

Calculate P-value from T-statistic

Description

Computes the p-value based on a given T-statistic, degrees of freedom, and hypothesis direction.

Usage

calc_p_val(t, df, alternative = "two.sided")

Arguments

t

Numeric. The T-statistic value.

df

Numeric. Degrees of freedom for the t-distribution.

alternative

Character. The alternative hypothesis. One of "two.sided", "less", or "greater". Defaults to "two.sided".

Value

Numeric. The p-value for the specified hypothesis test.


emilelatour/lagree documentation built on Sept. 18, 2024, 5:19 p.m.