tpval: The P-value of a t Test Base on a t-statistic.

Description Usage Arguments Examples

View source: R/tpval.R

Description

The P-value of a t Test Base on a t-statistic.

Usage

1
tpval(x, df, log = FALSE)

Arguments

x

a t statistic

df

degrees of freedom

log

the probability is in log-scale

Examples

1
2
3
4
tpval(1, df=3)
exp(tpval(1, df=3, log=TRUE))
tpval(Inf, df=3)
tpval(0, df=3)

Example output

[1] 0.3910022
[1] 0.3910022
[1] 0
[1] 1

brt documentation built on May 2, 2019, 10:22 a.m.

Related to tpval in brt...