View source: R/quadratic_forms.R
wls_hat_matrix | 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.