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

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/logLik.meteDist.R

Description

logLik.meteDist computes log-likelihood of a meteDist object

Usage

1
2
## S3 method for class 'meteDist'
logLik(object, ...)

Arguments

object

a meteDist object

...

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

1
2
3
4
5
6
7
8
9
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)

cmerow/meteR documentation built on May 13, 2019, 8:23 p.m.