Learn R Programming

RMediation (version 1.3.0)

tidy.logLik: Creates a data.frame for a log-likelihood object

Description

Creates a data.frame for a log-likelihood object

Usage

# S3 method for logLik
tidy(x, ...)

Value

A data.frame with columns:

term

The term name

estimate

The log-likelihood value

df

The degrees of freedom

Arguments

x

x A log-likelihood object, typically returned by logLik.

...

Additional arguments (not used)

Author

Davood Tofighi dtofighi@gmail.com

See Also

Examples

Run this code
fit <- lm(mpg ~ wt, data = mtcars)
logLik_fit <- logLik(fit)
tidy(logLik_fit)

Run the code above in your browser using DataLab