Learn R Programming

meteR (version 1.2)

logLik.meteDist: Compute log-likelihood of a meteDist object

Description

logLik.meteDist computes log-likelihood of a meteDist object

Usage

"logLik"(object, ...)

Arguments

object
a meteDist object
...
arguments to be passed

Value

object of class logLik

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.

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

Run this code
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)

Run the code above in your browser using DataLab