Hi
I am trying to use a formula to calculate the coefficients from a third order polynomial regression. I am using a formula published by John Wlkanbach which I have seen several places on the internet. For some reason I am getting a syntax error in my macro a portion of which I list below. Anything jump out at you folks?
Thanks
Arjay
Dim cubiccoeff as single
‘name x and y data ranges
Range(“F5”).Activate
Range(ActiveCell, Selection.End(xlDown)).Select
Selection.Name = “yPDCBData”
Range(“E5”).Activate
Range(ActiveCell, Selection.End(xlDown)).Select
Selection.Name = “xPDCBData”
Range(ActiveCell, ActiveCell.Offset(0, 1)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Name = “PDCBData”
‘syntaxi error at line below
cubiccoeff:=index(linest(yPDCBdata,xPDCBdata^{1,2,3}),1)