Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


UStatBookABSC (version 1.0.0)

WLS: 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

Run this code
 ## 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)


Run the code above in your browser using DataLab