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

View source: R/logLik.aidsEst.R

logLik.aidsEstR Documentation

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 class '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).

Author(s)

Arne Henningsen

See Also

aidsEst.

Examples

   # 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 )

micEconAids documentation built on May 20, 2022, 5:05 p.m.