size_uniform_user: SizeUser Size Overlap Randomization Algorithm

Description Usage Arguments Details Value Note See Also Examples

View source: R/algorithms.R

Description

Observed body sizes are randomized with a uniform distribution for which the user has defined the minimum and maximum possible body size.

Usage

1
2
size_uniform_user(speciesData = runif(n = 20), userLow = 0.9 *
  min(speciesData), userHigh = 1.1 * max(speciesData))

Arguments

speciesData

a vector of observed body sizes.

userLow

a user-defined lower limit.

userHigh

a user-defined upper limit.

Details

Within the user-defined limits, body sizes of all n species are randomized, whereas uniform_size randomizes only n - 2 of the body sizes and uses the extreme values to set the endpoints.

Value

Returns a vector of randomized body sizes.

Note

As the difference between the lower and upper boundaries is increased the test will yield results that are random or aggregated, even though the same data might yield a segregated pattern when the uniform_size algorithm is used. For this reason, this algorithm is not recommended for size ratio analyses.

See Also

size_uniform size distribution algorithm.

Examples

1
nullSizes <- size_uniform_user(speciesData=runif(20,min=10,max=20),userLow=8,userHigh=24)

EcoSimR documentation built on May 2, 2019, 7:26 a.m.