Description Usage Arguments Value Author(s)

The function computes the projection matrix onto a set of columns of a given matrix.

1 | ```
projection(X, active = NULL)
``` |

`X` |
a matrix containing the columns onto which the projection matrix is computed. |

`active` |
an index set of the columns of X. |

Returns the projection matrix onto the columns of "X" whose indices are included in "active". When active==NULL, a null matrix is returned.

Haeran Cho

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.