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

View source: R/RcppExports.R

ptvR Documentation

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)

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

Value

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


SimTOST documentation built on April 3, 2025, 9:05 p.m.