logLik.dosresmeta | R Documentation |
This method function returns the log-likelihood for fitted dose-response models represented in objects of class "dosresmeta
".
## S3 method for class 'dosresmeta'
logLik(object, ...)
object |
an object of class " |
... |
further arguments passed to or from other methods. |
A numeric scalar of class "logLik"
.
Alessio Crippa, alessio.crippa@ki.se
dosresmeta
, dosresmeta-package
, logLik
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.