gini: gini

View source: R/gini.r

giniR Documentation

gini

Description

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

Usage

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

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

AMCOOK/bio.survey documentation built on June 12, 2022, 4:59 a.m.