Skip to contents

Density, (cumulative) distribution function and random generation for Student distribution.

Usage

density_t(df, x)

cdf_t(df, x)

random_t(df, n)

Arguments

df

degrees of freedom.

x

vector of quantiles.

n

number of observations.

Examples

# T with 2 degrees of freedom.
z <- density_t(2, .01 * seq(-100, 100, 1))
# T with 2 degrees of freedom. 100 random
z <- random_t(2, 100)