Observations of Student-t Distribution with Degrees of Freedom - R

So I'm trying to learn R and using a number of resources including a book called "Discovering Statistics using R" and a bunch of other cool eBooks.

I've also been reading a tutorial page about Student-t Distribution and the wiki of Degree's of Freedom.

How can this be implemented in R? For example, simulating say 500 student-t distribution observations with 5 degrees of freedom?

Although I think I get the concept, I'm unsure of the functions/syntax to achieve this in R.


You're looking for the function rt in package stats

From ?rt:

rt(n, df, ncp)

Need Your Help

Get rid of ugly CustomEditor spacing

c# unity3d

I've been making my own event management system because I don't want to pay money for Playmaker:

Is C3P0 thread-safe?

java mysql jdbc thread-safety c3p0

An interruption exception (java.lang.InterruptedException) occurs as I'm trying to perform some simple read (SELECT) operations using C3P0 on a MySQL database. The exception occurs as I increase the