ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   LINEST, LOGEST, GROWTH or TREND?? (https://www.excelbanter.com/excel-discussion-misc-queries/41596-linest-logest-growth-trend.html)

NlCO

LINEST, LOGEST, GROWTH or TREND??
 

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 three
cells down and it should appear, but the numbers I get applies only
to:

f(t) = b*c^t

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

Thanks NlCO


--
NlCO
------------------------------------------------------------------------
NlCO's Profile: http://www.excelforum.com/member.php...o&userid=26123
View this thread: http://www.excelforum.com/showthread...hreadid=397762


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

NlCO wrote:

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 three
cells down and it should appear, but the numbers I get applies only
to:

f(t) = b*c^t

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

Thanks NlCO




All times are GMT +1. The time now is 07:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com