Compute the projection matrix onto a given set of variables
到一个给定的一组变量,计算投影矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function computes the projection matrix onto a set of columns of a given matrix.
函数计算投影矩阵到一组给定的矩阵的列。
用法----------Usage----------
projection(X, active = NULL)
参数----------Arguments----------
参数:X
a matrix containing the columns onto which the projection matrix is computed.
包含到其上的投影矩阵计算的列的矩阵。
参数:active
an index set of the columns of X.
列X的一个索引组
值----------Value----------
Returns the projection matrix onto the columns of "X" whose indices are included in "active". When active=NULL, a null matrix is returned.
返回投影矩阵的列上的“X”,其指数是包含在“活性”。积极= NULL,则返回一个空矩阵。