Learn R Programming

micEconAids (version 0.6-20)

logLik.aidsEst: Log-Likelihood value of an object of class aidsEst

Description

This method extracts the log-likelihood value of a fitted Almost Ideal Demand System (AIDS)

Usage

# S3 method for aidsEst
logLik( object, … )

Arguments

object

an object of class aidsEst.

currently ignored.

Value

A numeric scalar (the log-likelihood value) with 2 attributes: nobs (total number of observations in all equations) and df (number of free parameters, i.e. coefficients + elements of the residual covariance matrix).

See Also

aidsEst.

Examples

Run this code
# NOT RUN {
   # 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, ]

   ## Repeating the demand analysis of Blanciforti, Green & King (1986)
   estResult <- aidsEst( c( "pFood1", "pFood2", "pFood3", "pFood4" ),
      c( "wFood1", "wFood2", "wFood3", "wFood4" ), "xFood",
      data = Blanciforti86, priceIndex = "SL" )
   logLik( estResult )
# }

Run the code above in your browser using DataLab