This function extracts the log-likelihood from an object of coxme, coxph, lmekin, maxlikeFit, vglm, or various unmarkedFit classes.
1.1
extractLL(mod,...)## S3 method for class 'coxme'extractLL(mod, type ="Integrated",...)## S3 method for class 'coxph'extractLL(mod,...)## S3 method for class 'lmekin'extractLL(mod,...)## S3 method for class 'maxlikeFit'extractLL(mod,...)## S3 method for class 'unmarkedFit'extractLL(mod,...)## S3 method for class 'vglm'extractLL(mod,...)
Arguments
mod: an object of coxme, coxph, lmekin, maxlikeFit, vglm, or unmarkedFit class resulting from the fit of distsamp, gdistsamp, gmultmix, multinomPois, gpcount, occu, occuRN, colext, pcount, or pcountOpen.
...: additional arguments passed to the function.
type: a character string indicating whether the integrated partial likelihood ("Integrated") or penalized likelihood ("Penalized") is to be used for a coxme object.
Details
This utility function extracts the information from a coxme, coxph, lmekin, maxlikeFit, vglm, or unmarkedFit object resulting from distsamp, gdistsamp, gmultmix, multinomPois, gpcount, occu, occuRN, colext, pcount, or pcountOpen.
Returns
These functions return the value of the log-likelihood of the model and associated degrees of freedom.