Dose anyone know if it is possible to sample from a T-distribution in Phoenix?
Sampling from Normal distributions and uniform distribution seem straightforward but I don’t know an easy way to sample from a T-distribution - hoping there might be some simple general code…
(I am trying to run a Monte Carlo simulation and the distribution of one of the parameters is best described by the T-distribution).
You need to simulate k+1 normal random numbers with mean 0 and variance 1(you can do that with NLME) and then use the attached formula which will give a t distribution random sample with k degree of freedom. Try it and let me know.