changingvar.norm: simulates abundance data and calculates overlap for changing...

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

View source: R/changingvar-norm.R

Description

simulates abundance data and calculates overlap for changing variances

Usage

1
2
3
changingvar.norm(repeatings = 100, sds = c(112, 104, 84, 57, 27, 13, 1),
  n = 1000, OLest = c("Weitzman", "Matusita", "Pianka", "Morisita",
  "Duration", "WMD", "Horn", "n"))

Arguments

repeatings

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

sds

vector of numerics; Those will be the standard deviations of the noemal distributions which is used to create the datasets.

n

numeric (whole number); Determines the sample size for creating the datasets. Will be passed as as 'n' argument to to the NormData() function.

OLest

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

Details

#Will determine the overlap-measures given by OLest for two simulated datasets both coming from a normla distribution with the sample size given by n. This will be done for every standard deviation given by sds. And ffor every standard deviation as many overlaps will be determined as the repeatings argument says.

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 chosen standard deviation and the last the number of the repeating. In there are the results as returned by OLE function. To illustrate: list[[kernel]][[standard deviation]][[repeating]].

Author(s)

Florian Berger <florian_berger@ymail.com>

See Also

scale

Examples

1
changingvar.norm(sds=c(5,12), n = 500, repeatings = 2)

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