Accumulating Subtotals Results in Spreadsheets To produce subtotal results in spreadsheets covering all or several years, (a) you must include the Subtotal Command file statements in your CMFSTART files. (b) you must select option Accumulate Subtotal Results. (c) you must ensure that there are the same subtotals results in the runs which are compared when cumulative difference results are calculated. The subtotal results will be shown in the spreadsheets covering All / Several Years on the Results page. Example Suppose that you want two subtotals results reported for the Base Case, one covering one group of shocks and the other covering all the remaining shocks. You could include appropriate subtotals statements in your CMFSTARTB (the CMFSTART file for the Base Case). These subtotals statements would have the form Subtotal <list1> = subtotal 1 ; ! <list1> is the list of shocked variables for subtotal 1 Subtotal <list2> = subtotal 2 ; See chapter 11 of GPD-3 for more details about subtotals statements in Command files. Then select Option Accumulate Subtotal Results. If you then run the Base Case and select, on the Results page, the Year-on-Year style you would get a spreadsheet similar to the table below. Rows marked sub%1 refer to the first subtotal, while rows marked %2 refer to the second subtotal. The total result is shown first followed by the subtotal results.
Note that the subtotals results for either c1 or p1 for any year add to the overall result (as they should since the two subtotals results cover all the shocks). If you select, on the Results page, the Cumulative style, the cumulative output would be (approximately)
Again note that the subtotals numbers add to the overall number in each case. [For example, for year 2000, the subtotals numbers for p1 are 1.717 and 2.333 which add to 4.05 the accumulated result for p1 shown in 2000.] See section 10.2.4 in GEMPACK document GPD-4 for further details about how the cumulative subtotals are calculated. URL of this topic: www.copsmodels.com/webhelp/rundynam/hc_accumsubtot.htm Link to full GEMPACK Manual Link to GEMPACK homepage |