wls_hat_matrix {svrep} | R Documentation |
Create the "hat matrix" for weighted least squares regression
wls_hat_matrix(X, w)
X |
Matrix of predictor variables, with |
w |
Vector of weights (should all be nonnegative), of length |
An n \times n
matrix. This is the "hat matrix" for a WLS regression.