LINEST, LOGEST, GROWTH or TREND??

N

NlCO

Hi all, I need to get the R2 of a formula like this

f(t) = a + b*c^t

I've tried with LINEST(Range Y,LN(Range X),,TRUE) then the array thre
cells down and it should appear, but the numbers I get applies onl
to:

f(t) = b*c^t

Anybody knows how to get the real value or the r2 in any other way?

Thanks NlC
 
J

Jerry W. Lewis

You have not said what is known and what must be estimated here. Based
on getting a result using your LINEST formula, I assume that c is known
and a,b, & t must be estimated. That would make the problem nonlinear
in the unknowns. Excel has no functionality to natively fit such
functions. You could use Solver to approximately minimize the sum of
squared deviations by changing trial values of a,b, & t.

Once you have values for a,b, & t, R2 would be
=DEVSQ(a+b*c_range^t)/DEVSQ(y_range)
which must be array entered (Ctrl+Shift+Enter) because of the
calculation in the numerator.

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

VBA ln function 2
Excel VBA 1
quadratic equation and linest 5
VBa code for index(linest) 2
Trend Line Constants 5
Follow up area under the curve 2
Linest in VBA problem 1
UDF Challenge for Curve Fit Function 3

Top