delta,
covariance matrix sigma and degrees of freedom df.
dmvt gives the density and rmvt
generates random deviates.rmvt(n, sigma = diag(2), df = 1, delta = rep(0, nrow(sigma)),
type = c("shifted", "Kshirsagar"), ...)
dmvt(x, delta, sigma, df = 1, log = TRUE,
type = "shifted")x is a matrix, each
row is taken to be a quantile.type = "shifted" delta specifies the mode.diag(ncol(x)).TRUE, densities d are given as log(d).type = "Kshirsagar" corresponds
to formula (1.4) in Genz and Bretz (2009) (see also
Chapter 5.1 in Kotz and Nadarajah (2004)). This is the
rmvnorm,
for example method.pmvt and qmvtdmvt(x=c(0,0), sigma = diag(2))
x <- rmvt(n=100, sigma = diag(2), df = 3)
plot(x)Run the code above in your browser using DataLab