pFromT: Calculate p-values from t-statistics.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/format.R

Description

Calculate p-values from t-statistics.

Usage

1
pFromT(t_value = 1.96, df = 10, two.sided = FALSE)

Arguments

t_value

The t-statistics to be converted into a p-Value.

df

Degree of freedom in t-statistics.

two.sided

Indicator of the statistics be calculatede as two-sided (TURE) or one-sided (FALSE).

Details

utility function for conversion of p-values

Value

corresponding p-Value from the t-, z- or F-statistics

Author(s)

Roland Rapold

See Also

Link{pFromZ} and Link{pFromF}

Examples

1
2
3
4
5
6
7
8
9
        pFromT(t_value=1.96, df=10)
        pFromT(t_value=1.96, df=100)
        pFromT(t_value=1.96, df=1000)
        pFromT(t_value=1.96, df=1000, two.sided = TRUE)

        x <- c(seq(0.0001, 0.6, 0.01), NA, seq(0.6001, 1.0, 0.01))
        p_value <- pFromT(t_value=x, df=100)
        p_value
        formatPValue(p_value, digits=3)

rrMisc documentation built on June 25, 2021, 3 a.m.