logLik.chandwich: Extract log-likelihood for objects of class "chandwich"

View source: R/methods.R

logLik.chandwichR Documentation

Extract log-likelihood for objects of class "chandwich"

Description

logLik method for class "chandwich".

Usage

## S3 method for class '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.

Details

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

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.

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.


chandwich documentation built on Aug. 26, 2023, 1:07 a.m.