gini: gini

Description Usage Arguments Value Author(s) Examples

View source: R/gini.r

Description

gini index of patchniness from a stratified survey (Myers and Cadigan 1995)

Usage

1
gini(x, y)

Arguments

x

: within strata mean per tow

y

: strata areas in trawlable units

Value

estimate of gini

Author(s)

Adam Cook, Adam.Cook@dfo-mpo.gc.ca

Examples

1
2
3
4
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

PopulationEcologyDivision/bio.survey documentation built on May 29, 2019, 2:32 p.m.