gini | R Documentation |
gini index of patchniness from a stratified survey (Myers and Cadigan 1995)
gini(x, y)
|
: within strata mean per tow |
|
: strata areas in trawlable units |
estimate of gini
Adam Cook, Adam.Cook@dfo-mpo.gc.ca
y=c(2454, 656, 2374, 230, 1221, 619, 172, 2980, 360, 3245, 1016, 2569, 424, 390, 454) x=c(0, 0, 0, 0, 0, 0.25, 1.81, 2.52, 2.6, 3.68, 7.58, 10.07, 13.33, 13.33, 24.99) gini(x,y) #0.453 same as example in http://www.nefsc.noaa.gov/publications/crd/pdfs/crd9605f.pdf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.