aidsEst
does a full demand analysis with the Almost Ideal
Demand System (AIDS): econometric estimation, calculation
of elasticities, ...aidsEst( pNames, wNames, xtName, data = NULL,
ivNames = NULL, qNames = wNames,
method = "LA:L", hom = TRUE, sym = TRUE,
elaFormula = "Ch", pxBase,
estMethod = ifelse( is.null( ivNames ), "SUR", "3SLS" ),
maxiterIL = 50, tolIL = 1e-5, alpha0 = 0, TX = FALSE, ... )
aidsEla
).aidsPx
).systemfit
).systemfit
).systemfit
.The 'Iterative Linear Least Squares Estimator' (IL) needs starting values for the (translog) price index. The price index used to calculate the initial price index can be specified in the same way as for the LA-AIDS (e.g. 'IL:L')
aidsEst
containing following objects:
aidsEla
).}
systemfit
).}
systemfit
).}
Blundell, R. and J.M. Robin (1999) Estimationin Large and Disaggregated Demand Systems: An Estimator for Conditionally Linear Systems. Journal of Applied Econometrics, 14, p. 209-232.
[object Object]
## Repeating the demand analysis of Blanciforti, Green & King (1986) estResult <- aidsEst( c( "pFood1", "pFood2", "pFood3", "pFood4" ), c( "wFood1", "wFood2", "wFood3", "wFood4" ), "xFood", data = Blanciforti86, method = "LA:SL", elaFormula = "Ch", maxiter = 1, rcovformula = 1, tol = 1e-7 ) print( estResult )
## Repeating the evaluation of different elasticity formulas of ## Green & Alston (1990) pNames <- c( "pFood1", "pFood2", "pFood3", "pFood4" ) wNames <- c( "wFood1", "wFood2", "wFood3", "wFood4" )
# AIDS estResultA <- aidsEst( pNames, wNames, "xFood", data = Blanciforti86[ -1, ], maxiter = 1, elaFormula = "AIDS", rcovformula=1, tol=1e-7, method = "IL:L" ) print( diag( estResultA$ela$marshall ) )
# LA-AIDS + formula of AIDS estResultL1 <- aidsEst( pNames, wNames, "xFood", data = Blanciforti86, maxiter = 1, elaFormula = "AIDS", rcovformula=1, tol=1e-7, method = "LA:SL" ) print( diag( estResultL1$ela$marshall ) )
# LA-AIDS + formula of Eales + Unnevehr estResultL2 <- aidsEst( pNames, wNames, "xFood", data = Blanciforti86, maxiter = 1, elaFormula = "EU", rcovformula=1, tol=1e-7, method = "LA:SL" ) print( diag( estResultL2$ela$marshall ) )
# LA-AIDS + formula of Chalfant: estResultL3 <- aidsEst( pNames, wNames, "xFood", data = Blanciforti86, maxiter = 1, elaFormula = "Ch", rcovformula=1, tol=1e-7, method = "LA:SL" ) print( diag( estResultL3$ela$marshall ) )