Calculate p-value

calc_pval(x, df, tails = 2)

Arguments

x

Vector/matrix of t-stats

df

Degrees of freedom.

tails

1 or 2 for one- or two-tailed p-value.