logLik method for class "chandwich".

# S3 method for chandwich
logLik(object, ...)

Arguments

object

an object of class "chandwich", a result of a call to adjust_loglik.

...

Additional optional arguments. At present no optional arguments are used.

Value

An object of class "logLik": a numeric scalar with value equal to the maximised (independence) loglikelihood, that is, the value of the independence loglikelihood at the MLE, and the attribute "df", which gives the number of free parameters estimated.

Details

The value of the maximised (independence) loglikelihood is extracted from attr(object, "max_loglik"). It is also equal to object(attr(object, "MLE")).

See also

coef.chandwich: coef method for class "chandwich".

vcov.chandwich: vcov method for class "chandwich".

summary.chandwich: summary method for class "chandwich".

adjust_loglik to adjust a user-supplied loglikelihood.