aidsPx                package:micEcon                R Documentation

_P_r_i_c_e _I_n_d_e_x _f_o_r _t_h_e _A_I_D_S

_D_e_s_c_r_i_p_t_i_o_n:

     Calculate log price indices for the AIDS and LA-AIDS.

_U_s_a_g_e:

        aidsPx( px, pNames, wNames = NULL, data = NULL, base = 1, coef = NULL,
           alpha0 = ifelse( is.null( coef$alpha0 ), 0, coef$alpha0 ) )

_A_r_g_u_m_e_n_t_s:

      px: the prices index to be used (see details).

  pNames: a vector of strings containing the names of prices.

  wNames: a vector of strings containing the names of expenditure
          shares.

    data: a data frame containing the data.

    base: The base to calculate the indices (see details).

    coef: a list containing the coefficients alpha, beta and gamma
          (only needed for the translog price index).

  alpha0: coefficient alpha_0 in the translog price index.

_D_e_t_a_i_l_s:

     Currently 6 different price indices are implemented: 
      * translog price index ('TL'),
      * Stone price index ('S'),
      * Stone price index with lagged shares ('SL'),
      * loglinear analogue to the Paasche price index ('P'),
      * loglinear analogue of the Laspeyres price index ('L'), and
      * Tornqvist price index ('T'). 
      The argument 'base' can be either 
      (a) a single number: the row number of the base prices and
     quantities, 
      (b) a vector indicating several observations: The means of these
     observations are used as base prices and quantities, or 
      (c) a logical vector with the same length as the 'data': The
     means of the observations indicated as 'TRUE' are used as base
     prices and quantities.

_V_a_l_u_e:

     a vector containing the log price index.

_A_u_t_h_o_r(_s):

     Arne Henningsen ahenningsen@agric-econ.uni-kiel.de

_R_e_f_e_r_e_n_c_e_s:

     Deaton, A.S. and J. Muellbauer (1980) An Almost Ideal Demand
     System. _American Economic Review_, 70, p. 312-326.

     Moschini, G. (1995) Units of Measurement and the Stone Index in
     Demand System Estimation. _American Journal of Agricultural
     Economics_, 77, p. 63-68.

_S_e_e _A_l_s_o:

     'aidsEst'

_E_x_a_m_p_l_e_s:

        data( Blanciforti86 )
        aidsPx( "S", c( "pFood1", "pFood2", "pFood3", "pFood4" ),
           c( "wFood1", "wFood2", "wFood3", "wFood4" ), Blanciforti86 )

