Learn R Programming

micEcon (version 0.5-22)

fitted.aidsEst: Fitted values of an Almost Ideal Demand System

Description

This method extracts the fitted demanded quantities and expenditure shares from an estimated Almost Ideal Demand System.

Usage

## S3 method for class 'aidsEst':
fitted( object, \dots )

Arguments

object
an object of class aidsEst.
...
currently unused.

Value

  • The fitted method returns a list containing following objects:
  • sharesa data frame for the fitted expenditure shares.
  • quanta data frame for the fitted demanded quantities.

See Also

aidsEst

Examples

Run this code
# Using data published in Blanciforti, Green & King (1986)
   data( Blanciforti86 )
   # Data on food consumption are available only for the first 32 years
   Blanciforti86 <- Blanciforti86[ 1:32, ]

   estResult <- aidsEst( c( "pFood1", "pFood2", "pFood3", "pFood4" ),
      c( "wFood1", "wFood2", "wFood3", "wFood4" ), "xFood",
      data = Blanciforti86 )
   fitted( estResult )

Run the code above in your browser using DataLab