powered by
Functions dmxt and rmxt are for evaluating densities and generating random samples from corresponding matrix variate t-distribution.
dmxt
rmxt
dmxt(X, df, M = array(0, c(p, m)), U = diag(nrow(M)), V = diag(ncol(M)))rmxt(n, df, M, U = diag(nrow(M)), V = diag(ncol(M)))
rmxt(n, df, M, U = diag(nrow(M)), V = diag(ncol(M)))
a (p-by-m) matrix whose density be computed.
(p-by-m)
degrees of freedom.
a (p-by-n) mean matrix.
(p-by-n)
a (p-by-p) left spread matrix.
(p-by-p)
an (n-by-n) right spread matrix.
(n-by-n)
the number of samples to be generated.
# NOT RUN { ## generate 5 samples from {M,U,V = diag()} of df = 10 st5 = rmxt(5, df=10, M=diag(3)) ## evaluate density for the 3rd sample dmxt(st5[,,3], df=10, M=diag(3)) # }
Run the code above in your browser using DataLab