powered by
Generate random samples from a (multivariate) t distribution
rT(n, mu, Sigma = NULL, A = NULL, df = 1)
integer, number of samples.
numeric, mean vector.
matrix, covariance matrix, one of Sigma and A should be non-NULL.
matrix, the Cholesky decomposition of Sigma, an upper triangular matrix, one of Sigma and A should be non-NULL.
numeric, degrees of freedom.
A matrix of n rows and length(mu) columns, each row is a sample.
dT
# NOT RUN { x <- rT(1000,mu = c(1,1),Sigma = matrix(c(1,0.5,0.5,3),2,2)) plot(x) # }
Run the code above in your browser using DataLab