Learn R Programming

blm (version 2013.2.4.4)

logLik: Log-likelihood of blm and lexpit objects.

Description

Method to access the log-likelihood of the fitted blm or lexpit model.

Arguments

Methods

logLik
signature(object = "blm",...): Extract log-likelihood. Returns object of logLik class.
logLik
signature(object = "lexpit",...): Extract log-likelihood. Returns object of logLik class.

Details

The return object is of the logLik class. This method is registered with the stats4 package and can therefore be used with applicable methods like AIC and BIC. Note that when weights are used in the model estimation, the logLik is a pseduo-log-likelihood.

See Also

logLik.lm

Examples

Run this code

data(ccdata)

fit <- lexpit(y~female, y~packyear, data = ccdata,
       			weight = ccdata$w, strata = ccdata$strata)

logLik(fit)

AIC(fit)

Run the code above in your browser using DataLab