powered by
Creates a data.frame for a log-likelihood object
# S3 method for logLik tidy(x, ...)
A data.frame with columns:
The term name
The log-likelihood value
The degrees of freedom
x A log-likelihood object, typically returned by logLik.
Additional arguments (not used)
Davood Tofighi dtofighi@gmail.com
logLik
fit <- lm(mpg ~ wt, data = mtcars) logLik_fit <- logLik(fit) tidy(logLik_fit)
Run the code above in your browser using DataLab