Log-Likelihood value of an object of class aidsEst
Log-Likelihood value of an object of class aidsEst
This method extracts the log-likelihood value of a fitted Almost Ideal Demand System (AIDS)
## S3 method for class 'aidsEst'logLik( object,...)
Arguments
object: an object of class aidsEst.
...: currently ignored.
Returns
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.
Author(s)
Arne Henningsen
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 )