WLS {UStatBookABSC} | R Documentation |
Computes a weighted least squares linear regression on possibly multivariate responses
Description
Computes a weighted least squares linear regression on possibly multivariate responses
Usage
WLS(Y, X, W)
Arguments
Y |
a numeric matrix, to act as response |
X |
a numeric matrix, to act as covariates |
W |
a numeric matrix, to act as weights |
Value
a vector of regression coefficients
Examples
## Not run:
DataY = cbind(CCU12_Precip$Precip, CCU12_Precip$TMax);
DataX = cbind(rep(1, length(CCU12_Precip$Precip)), CCU12_Precip$TMin)
BetaHat.New = WLS(DataY, DataX)
## End(Not run)
[Package UStatBookABSC version 1.0.0 Index]