For years I've been regressing vapor pressure data with a 4 parameter equation in Excel using the built in matrix functions. From this group, I learned that I could perform the same regression using the LINEST function, which would clean up my spreadsheet a little bit, and reduce the work of building the spreadsheet. And it works just fine, with one minor annoyance. Hopefully I can explain.
The specific form of the function is ln(y)=A+B/x+Cln(x)+Dx^6
I set up the matrix as:
f1(x1),f2(x1),f3(x1),f4(x1),g(y1)
f1(x2),f2(x2),f3(x2),f4(x2),g(y2)
and so on
where f1=1, f2=1/x, f3=ln(x), f4=x^6, g=ln(y)
When I would use the matrix functions (mmult, minverse), the parameters would be output in the same order as I had set up the matrix (A,B,C,D). When I use LINEST, the parameters come out backwards (D,C,B,A).
Of course, the workaround is to arrange the input matrix backwards. However, it often helps me keep things straight if the output is in the same order as the input.
Anyone else ran across (and maybe been annoyed) by this?
Bookmarks