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

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
2
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
   # 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 2, 2019, 5:21 p.m.