ptdiff: More stable way to calculate differences in T cdf's.

Description Usage Arguments Author(s)

View source: R/mouthwash_uniform_em.R

Description

If T() is the cdf of a t-distribution if degrees_freedom degrees of freedom, then this function will calculate T(x) - T(y) or T(-y) - T(-x) (which are are equivalent), depending on which one is more numerically stable.

Usage

1
ptdiff(x, y, degrees_freedom)

Arguments

x

A quantile of the t.

y

The other quantile of the t.

degrees_freedom

The degrees of freedom of the t.

Author(s)

David Gerard


dcgerard/vicar documentation built on July 7, 2021, 1:08 p.m.