Learn R Programming

SimTOST (version 1.0.2)

ptv: Compute p-values for a t-distribution with Fixed Degrees of Freedom

Description

Computes p-values for a given set of random variables under a t-distribution with fixed degrees of freedom.

Usage

ptv(x, df, lower)

Value

A numeric matrix containing the computed cumulative distribution function (CDF) values (p-values).

Arguments

x

A numeric matrix (or vector) representing the random variables.

df

A double specifying the degrees of freedom.

lower

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)).