Computes p-values for a given set of random variables under a t-distribution with fixed degrees of freedom.
ptv(x, df, lower)A numeric matrix containing the computed cumulative distribution function (CDF) values (p-values).
A numeric matrix (or vector) representing the random variables.
A double specifying the degrees of freedom.
A logical value indicating whether to compute the lower-tail probability (P(T <= x)). If FALSE, the function returns the upper-tail probability (P(T > x)).