changingn.normaldist: simulates abundance data and calculates overlap for changing...

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

View source: R/changingn-normaldist.R

Description

simulates abundance data and calculates overlap for changing sample sizes

Usage

1
2
3
changingn.normaldist(ns = c(1000, 500, 200, 100, 50, 20, 10),
  repeatings = 100, type = "beta", OLest = c("Weitzman", "Matusita",
  "Pianka", "Morisita", "Duration", "WMD", "Horn", "n"))

Arguments

ns

vector of numeric objects (whole numbers); the sample sizes for which the overlap will be determined. Applies for both datasets.

repeatings

numeric (whole numbers); Determines how often the whole procedure (data producing and calculation of the overlap) shall be repeated.

type

string; If set to beta the abundance data will bbe drawn from a beta distribution. If not beta this will be from a normal distribution.

OLest

vector of strings; determines in which way(s) the overlap shall be determined, will be passed to OLE function.

Details

Produces two abundance datastes and dteremines the overlpa-measures given with OLest betweeen these. The overlap will be determined using three different methods : kernel density estimation, fitting a distribution or normalization (normalize function). The sample size will be set to the maximum value of ns. The type argument determinnes whether these data shall be created using a beta or a normal distribution. Then the sample size will be decreased, using the normaldist.crossout function, to the next lower value of ns, and the overlap will be determined again. This will be repeated, until an overlap for all the ns was calculated. Afterwards This procedure itself will be repeated as many times as repeatings says. A listt will be returned, that has 3 lists in it, one for the kernel ddensity estimation one for fitted distributions etc. This lists have a list stored in them for each stepsize. Those lists contain all the results of the estimations for the respective sample size and way the overlap was determined.

Value

a list. First index level determines the way of estimating the pdf so it has the three indexes: 'kernel', 'fitdistr' and 'normalize'. The second index-level is the sample size and the last the number of the repeating. In there are the results as returned by OLE function. To illustrate: list[[kernel]][[sample-size]][[repeating]]

Author(s)

Florian Berger <florian_berger@ymail.com>

See Also

scale

Examples

1
changingn.normaldist(ns=c(300,50), repeatings = 2, type = 'normal')

biometry/phenologicalOverlap documentation built on May 21, 2019, 2:31 a.m.