This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/T.html
T {base}R Documentation

The Student t Distribution

Description

These functions provide information about the t distribution with df degrees of freedom. dt gives the density, pt gives the distribution function, qt gives the quantile function and rt generates random deviates.

The t distribution with n degrees of freedom has density

f(x) = \frac{\Gamma ((n+1)/2)}{\sqrt{\pi n} \Gamma (n/2)} (1 + x^2/n)^{-(n+1)/2}

for all real x.

Usage

dt(x, df)
pt(q, df)
qt(p, df)
rt(n, df)

See Also

df for the F distribution which generalizes the t one.

Examples

1 - pt(1:5, df = 1)
qt(.975, df = c(1:10,20,50,100,1000))

[Package base version 0.60 ]