logLik.meteDist {meteR} | R Documentation |
logLik.meteDist
computes log-likelihood of a meteDist object
## S3 method for class 'meteDist'
logLik(object, ...)
object |
a |
... |
arguments to be passed |
Degrees of freedom are assumed to be equal to the number of Lagrange multpliers needed to specify the METE prediction. See Examples for usage.
object of class logLik
Andy Rominger <ajrominger@gmail.com>, Cory Merow
Harte, J. 2011. Maximum entropy and ecology: a theory of abundance, distribution, and energetics. Oxford University Press.
sad, ssad, ipd, sipd
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)