• 87 views | 2 messages Discussion: LEAP
    Topic: About StatisticsSubscribe | Previous | Next
  • Hasret Sahin 1/4/2014

    1998 Views

    Hi,

    I saw some forecast functions in LEAP ( e.g. LinDataTrend, LinForecastBY). I wonder how LEAP calculates R2 of these linear regression expressions. I could not see any choice besides Std and Var.

    Could you give some example?

    Thanks,
    Hasret
  • Taylor Binnington 1/6/2014
      Best Response

    1997 Views

    Hi Hasret,

    You can have a look at the RSquared() function:

    http://www.energycommunity.org/WebHelpPro/Expressions/RSquared.htm

    but at the time of posting this reply, we've identified a few issues with it (not to mention, we hope to soon update/clarify the documentation for it).

    Currently, the RSquared function only takes a time series of year and value pairs, like this:

    RSquared(2010,10,2020,20,2030,30)

    and generates the R2 value (the coefficient of determination) assuming a *linear* fit through the data. We will be working to expand its usefulness, as well as improve documentation in the coming weeks. Thank you for bringing it to our attention!

    Taylor