t2p {ReplicationSuccess}R Documentation

Transforms t-values to p-values

Description

Transforms the t-value(s) to the corresponding one- or two-sided p-value(s).

Usage

t2p(t, alternative="two.sided")

Arguments

t

a vector of t-values

alternative

Underlying alternative of p-value. Either "two.sided" or "one.sided". Defaults to "two.sided". Specifies if the P-values are one-sided or two-sided.

Value

A numeric vector of p-values

Examples

t2p(t=c(1,2,5))
t2p(t=c(1,2,5), alternative="one.sided")

[Package ReplicationSuccess version 0.1-1 Index]