This function recursively orthogonalises variables in a matrix to the first column. It is designed to emulate the SPM approach to orthogonalisation. However instead of computing the results using a pseudo-inverse R's qr functions are used.
matrix to be orthogonalised
The recursively orthogonalised matrix is returned
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.