logLik.meteDist {meteR} | R Documentation |
Compute log-likelihood of a meteDist object
Description
logLik.meteDist
computes log-likelihood of a meteDist object
Usage
## S3 method for class 'meteDist'
logLik(object, ...)
Arguments
object |
a |
... |
arguments to be passed |
Details
Degrees of freedom are assumed to be equal to the number of Lagrange multpliers needed to specify the METE prediction. See Examples for usage.
Value
object of class logLik
Author(s)
Andy Rominger <ajrominger@gmail.com>, Cory Merow
References
Harte, J. 2011. Maximum entropy and ecology: a theory of abundance, distribution, and energetics. Oxford University Press.
See Also
sad, ssad, ipd, sipd
Examples
data(arth)
## object holding ecosystem structure function
esf1 <- meteESF(spp=arth$spp,
abund=arth$count,
power=arth$mass^(.75),
minE=min(arth$mass^(.75)))
## calculate individual power distribution and its likelihood
ipd1 <- ipd(esf1)
logLik(ipd1)
[Package meteR version 1.2 Index]