Name

contrib_logq2gra — contributions to an annual growth rate

CALLING SEQUENCE

[list_contrib_a_unb,list_contrib_a_bal,list_conttrim,mainf]=contrib_logq2gra(namey,arg1,…,argn)

PARAMETERS

Input

• namey = a string representing the name of a ts

• arg1,…,argn =

 - a list of 3 elements:

   * the name of the variable whose contribution is to be calculated

   * the Autoregressive part of the equation

   * the Moving Average part relative to the considered variable

 - the string 'prt=xxx' where xxx can be:

   * 'trim' if the user wants the quarterly contributions to be printed

   * 'mainf' if the user wants the Infinite Moving Average approximation to be printed

   * 'unbal' if the user wants the annual contributions before rebalancing to be printed

   * 'cont' if the user wants the annual contributions after rebalancing to be printed

   * 'all' if the user wants all these results to be printed

Output

• list_contrib_a_unb = list of the unbalanced yearly contributions

• list_contrib_a_bal = list of the balanced yearly contributions

• list_conttrim = list of the quarterly contributions

• mainf = the matrix of infinite moving averages

DESCRIPTION

Calculates contributions of exogenous variables to the annual growth rate of an endogenous variable when the econometric equation is estimated on the logarithm of the quarterly observations of the variable.

EXAMPLE

See contrib_d()

               

AUTHOR

Eric Dubois 2004