Generate a random orthogonal basis matrix of dimension \((nrow x ncol)\) using the method in Heiberger (1978).
randomOrthogonalMatrix(nrow, ncol, n = nrow, d = ncol, seed = NULL)
the number of rows of the resulting orthogonal matrix.
the number of columns of the resulting orthogonal matrix.
an optional integer argument to use in
reproducibility. By default the current seed will be used.
Reproducibility can also be achieved by calling
before calling this function.
The use of arguments
d is deprecated and they will be removed in the future.
An orthogonal matrix of dimension \(nrow x ncol\) such that each column is orthogonal to the other and has unit lenght. Because of the latter, it is also called orthonormal.
Heiberger R. (1978) Generation of random orthogonal matrices. Journal of the Royal Statistical Society. Series C (Applied Statistics), 27(2), 199-206.