Computing the log-likelihood function fot adrm and sdm objets.
Usage
log_lik(x, cores = 1)
# S3 method for class 'adrm'
log_lik(x, cores = 1)
# S3 method for class 'sdm'
log_lik(x, cores = 1)Arguments
- x
an object of class
adrmorsdm. These objects are generated as the output of thefit_drm()andfit_sdm()functions, respectively,- cores
number of threads used to calculate the log-likelihood function. If four chains were used in the
fit_drm(offit_sdm), then four (or less) threads are recommended.
