Project Out the Intercept from X and y
get_Xy_centered.RdThis function projects the predictor matrix X and response vector y onto the
orthogonal complement of the intercept (constant) vector. This removes any component
of the data explained by the intercept, effectively centering the data in the
sense of removing the mean direction.
Value
A list containing:
- X
The predictor matrix after projection (dimensions: (n - 1) x p).
- y
The response vector after projection (length: n - 1).