scdrs.pp.reg_out#

scdrs.pp.reg_out(mat_Y, mat_X)[source]#

Regress mat_X out of mat_Y.

Parameters:
mat_Ynp.ndarray

Response variable of shape (n_sample, n_response).

mat_Xnp.ndarray

Covariates of shape (n_sample, n_covariates).

Returns:
mat_Y_residnp.ndarray

Response variable residual of shape (n_sample, n_response).