powered by
The function rpgm.rt uses rpgm.rnorm in order to simulate student random variables faster than rt.
rpgm.rnorm
rt
rpgm.rt(n, df)
integer, number of simulations.
double, degrees of freedom (> 0, maybe non-integer).
A vector of i.i.d. student random variables.
If df = 1, the distribition if the Cauchy one. The mean exists when df > 1 and the variance when df > 2.
df = 1
df > 1
df > 2
https://en.wikipedia.org/wiki/Ziggurat_algorithm
http://pgm-solutions.com/packages
# NOT RUN { rpgm.rt(5, 4) # }
Run the code above in your browser using DataLab