Description Usage Arguments Value References Examples

This function implements pseudo-random number generation for a standard-*t* distribution with pdf

*f(x|ν)=\frac{Γ(\frac{ν+1}{2})}{Γ(\frac{ν}{2})√{νπ}}(1+\frac{x^2}{ν})^{-(ν+1)/2}*

for *-∞ < x < ∞* where *ν* is the degrees of freedom.

1 | ```
draw.t(nrep,dof)
``` |

`nrep` |
Number of data points to generate. |

`dof` |
Degrees of freedom of the desired t distribution. |

A list of length five containing generated data, the theoretical mean, the empirical mean, the theoretical variance, and the empirical variance with names y, theo.mean, emp.mean, theo.var, and emp.var, respectively.

Bailey, R. W. (1994). Polar generation of random variates with the t-distribution. *Mathematics of Computation*, **62**, 779-781.

1 2 3 |

UnivRNG documentation built on Jan. 11, 2018, 1:03 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.