logLik.dosresmeta {dosresmeta} | R Documentation |
Extract Log-Likelihood from dosresmeta Objects
Description
This method function returns the log-likelihood for fitted dose-response models represented in objects of class "dosresmeta
".
Usage
## S3 method for class 'dosresmeta'
logLik(object, ...)
Arguments
object |
an object of class " |
... |
further arguments passed to or from other methods. |
Value
A numeric scalar of class "logLik"
.
Author(s)
Alessio Crippa, alessio.crippa@ki.se
See Also
dosresmeta
, dosresmeta-package
, logLik
Examples
data("alcohol_crc")
## Dose-response model assuming linearity
lin <- dosresmeta(formula = logrr ~ dose, type = type, id = id, se = se,
cases = cases, n = peryears, data = alcohol_crc, proc = "1stage")
## Log-likelihood
ll <- logLik(lin)
ll
attributes(ll)
## AIC and BIC
AIC(ll)
BIC(ll)
[Package dosresmeta version 2.0.1 Index]