Description Usage Arguments Value Examples
Computes a weighted least squares linear regression on possibly multivariate responses
1 | WLS(Y, X, W)
|
Y |
a numeric matrix, to act as response |
X |
a numeric matrix, to act as covariates |
W |
a numeric matrix, to act as weights |
a vector of regression coefficients
1 2 3 4 5 6 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.