I'm fitting an exponential decay to some data and want to use linest to get the decay constant and r2 values.
I'm using LINEST(LN(E3:E5),C3:C5) for the decay constant, and INDEX(LINEST(LN(E3:E5),C3:C5,1,TRUE),3,1) for r2.
If I plot the trendline on a graph I get the equation being y=1.01exp(-0.105x). I want to force the y-intercept to 1, which I can do in the trendline formatting settings giving y=exp(-0.102x).
How do I get the same equation values with linest setting a y-intercept of 1?
Thanks in advance...
I'm using LINEST(LN(E3:E5),C3:C5) for the decay constant, and INDEX(LINEST(LN(E3:E5),C3:C5,1,TRUE),3,1) for r2.
If I plot the trendline on a graph I get the equation being y=1.01exp(-0.105x). I want to force the y-intercept to 1, which I can do in the trendline formatting settings giving y=exp(-0.102x).
How do I get the same equation values with linest setting a y-intercept of 1?
Thanks in advance...