if z is a vector, yes. but if z is a scalar, it's just a normal dist.
remember, you need to let z vary for each draw.
Kosuke
I am confused. Doesn't the following line draw
1000 numbers from the T
distribution:
y <- rnorm(1000, mean = 0, sd = sqrt(1/z))