powered by
Performs a weighted least squares regression using QR decomposition, with a generalized inverse fallback if the system is singular.
.wls_fit(X, y, w)
A list with elements beta, mu, resid,
beta
mu
resid
sigma2, and XtX.
sigma2
XtX
Numeric design matrix.
Numeric response vector.
Numeric vector of weights.