• 139 views | 3 messages Discussion: LEAP
    Topic: Growth and time series Subscribe | Previous | Next
  • Robert Brecha 3/17/2025

    In the newest LEAP version 2024.2.0.0 it appears that Growth functions are no longer allowed within a time series (interp) is there a reason for this, or has anyone else tried this? A working Area now needs several modifications due to the change.
  • Charlie Heaps 3/18/2025
      Best Response

    That's right Robert. I assume you mean something like this?

    Interp(2013, Growth(-1.5%), 2018, Growth(-1%), 2030, Growth(0.2%))


    I decided to disallow this. In some cases, it was anyway causing circularity errors, but in looking at that issue I further realized it should not be allowed since growth works by looking at the value in a previous year, and previous year values can only be worked out if the Interpolated values are already sorted out (which in itself requires the results of the growth function).

    In general, if you want to have multiple growth rates you can do something like this:

    Growth(a%, 2020, b%, 2030, c%)

    Apologies for not including this in the What's new change log.
  • Robert Brecha 3/26/2025
      Best Response

    Thanks, Charlie. There may be a workaround for this that I haven't figured out yet, but the situation I had is the following: For historical data, we only had fuels and not sectors (2010-2022, total gasoline, diesel; afterwards we wanted more detail for trucks, cars, etc.). Thus, the FSY did not have a value (miles per gallon) to reference from BaseYear or Current Accounts. (I inherited these models from, I believe, colleagues who had initially worked with SEI on development, as I haven't usually separated "Historical ..." and sectors in this way). In any case the expression I had used for Interp now does need to be restructured.