View source: R/logLik.aidsEst.R
logLik.aidsEst | R Documentation |
This method extracts the log-likelihood value of a fitted Almost Ideal Demand System (AIDS)
## S3 method for class 'aidsEst' logLik( object, ... )
object |
an object of class |
... |
currently ignored. |
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).
Arne Henningsen
aidsEst
.
# 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 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.