1

I have a request on weighted least squares. Does dolphindb support weighted least squares regression “wls”? How to use it?

1 Answers1

0

The usage of wls is shown as below:

Y = [1, 3, 4, 5, 2, 3, 4]
X = table([1, 1, 1, 1, 1, 1, 1] as col1, [1, 2, 3, 4, 5, 6, 7] as col2)
w = wls(Y, X, 1..7, intercept=false, mode=0)
w

Result:

enter image description here

jinwandalaohu
  • 226
  • 1
  • 7