Learn R Programming

metamisc (version 0.4.0)

logLik.riley: Print the log-likelihood

Description

This function provides the (restricted) log-likelihood of a fitted model.

Usage

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

Value

Returns an object of class logLik. This is the (restricted) log-likelihood of the model represented by object evaluated at the estimated coefficients. It contains at least one attribute, "df" (degrees of freedom), giving the number of (estimated) parameters in the model.

Arguments

object

A riley object, representing a fitted alternative model for bivariate random-effects meta-analysis when the within-study correlations are unknown.

...

Additional arguments to be passed on to other functions, currently ignored.

Author

Thomas Debray <thomas.debray@gmail.com>

References

Riley RD, Thompson JR, Abrams KR. An alternative model for bivariate random-effects meta-analysis when the within-study correlations are unknown. Biostatistics 2008; 9: 172--186.

Examples

Run this code
data(Daniels)
fit <- riley(Daniels,control=list(maxit=10000))
logLik(fit)

Run the code above in your browser using DataLab