Learn R Programming

erer (version 1.3)

aiStaFit: Fitting a Static AIDS Model

Description

Estimate a static AIDS model for a system.

Usage

aiStaFit(y, share, price, expen, shift = NULL, omit = NULL,
  hom = TRUE, sym = TRUE, ...)

Arguments

y
a multiple time series data.
share
names of the share variables.
price
names of the price variables.
expen
name of the expenditure variables.
shift
names of the shifter variables.
omit
name of the share variable omitted; if not supplied, this is the last one of share.
hom
a logical value of homogeneity test.
sym
a logical value of symmetry test.
...
additional arguments to be passed.

Value

  • Return a list object of class "aiFit" and "aiStaFit" with the following components:
  • ydata for fitting the static AIDS model.
  • sharenames of the share variables.
  • pricenames of the price variables.
  • expenname of the expenditure variables.
  • shiftnames of the shifter variables.
  • omitname of the share variable omitted; if not supplied, this is the last one of share.
  • nOmitposition of the omitted share variable in the name of share variable.
  • homa logical value of homogeneity test.
  • syma logical value of symmetry test.
  • nSharenumber of share variables.
  • nExogenumber of exogenous variables (lagged share, residual, expenditure, and shifters).
  • nParamnumber of parameters in one equation.
  • nTotalnumber of parameters in the whole system estimated.
  • formulaformula for estimating the system.
  • res.matrixrestriction matrix for hom or sym, or both.
  • res.rhsright-hand values for tests of hom or sym, or both.
  • estthe static AIDS model estimated.
  • calla record of the system call; this allows update.default to be used.

Details

This estimates a static AIDS model. The data supplied should be in the final format.

References

Wan, Y., C. Sun, and D.L. Grebner. 2010. Analysis of import demand for wooden beds in the United States. Journal of Agricultural and Applied Economics 42(4):643-658.

See Also

aiDiag; aiElas; summary.aiFit; aiDynFit.

Examples

Run this code
# see the examples for 'aiDynFit'.

Run the code above in your browser using DataLab