meteSSF {meteR} | R Documentation |
meteSSF
Description
meteSSF
calculates the “spatial structure
function” \Pi(n)
(analogous to the ecosystem structure function). From
the SSF the spatial abundance distribution can be calculated.
Usage
meteSSF(spp, sppID, abund, row, col, x, y, n0 = sum(abund), A, A0)
Arguments
spp |
A vector of species names |
sppID |
A character giving the name of the desired species (as it appears in ‘spp’) |
abund |
A vector of abundances |
row |
A vector of row IDs for each observation |
col |
A vector of column IDs for each observation |
x |
A vector of x coordinates for each observation |
y |
A vector of y coordinates for each observation |
n0 |
Total abundance in area A0 |
A |
The area at which abundances were recorded |
A0 |
Total study area |
Details
Uses either data or state variables to calculate the Spatial Structure Function (SSF). Uses internal code to determine when computation-saving approximations can be safely made
Value
An object of class meteSSF
with elements
data
The data used to construct the SSF
La
Vector of Lagrange multipliers
La.info
Termination information from optimization procedure
state.var
State variables used to constrain entropy maximization
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
metePi
Examples
data(anbo)
## calculate SSF Pi
pi1 <- meteSSF(anbo$spp, 'crcr', anbo$count, row=anbo$row, col=anbo$column, A=1, A0=16)
pi1