%ranmvkron(S,X) fn compared to similar fn in R
Posted: Wed Jun 14, 2017 5:11 pm
Hi,
In the %ranmvkron(S,X) fn, the dimensions of S are n*n and X is k*k and returns a draw of dimension n*k.
When I compare this with functions used for drawing from mv normal distribution in R. I find the row dimension needs to be same for mu and sigma. Like for the below fn in R:
https://stat.ethz.ch/R-manual/R-devel/l ... rnorm.html
mu will be a k*1 vector and sigma will be a square covariance matrix of dimesion k.
In the %ranmvkron(S,X) fn, the dimensions of S are n*n and X is k*k and returns a draw of dimension n*k.
When I compare this with functions used for drawing from mv normal distribution in R. I find the row dimension needs to be same for mu and sigma. Like for the below fn in R:
https://stat.ethz.ch/R-manual/R-devel/l ... rnorm.html
mu will be a k*1 vector and sigma will be a square covariance matrix of dimesion k.