[R] Reconstruct the Q matrix from the QR object
Richard M. Heiberger
rmh at temple.edu
Thu Oct 30 04:32:18 CET 2008
x <- matrix(rnorm(1:20), 5, 4)
x.qr <- qr(x)
Q <- qr.Q(x.qr)
R <- qr.R(x.qr)
X <- qr.X(x.qr)
Q
R
X
Q %*% R
qr.Q(x.qr, complete=TRUE) ## orthogonal completion
More information about the R-help
mailing list