SizeUser Size Overlap Randomization Algorithm

Usage

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.

Value

Returns a vector of randomized body sizes.

Description

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

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.

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.

Examples

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

See also

size_uniform size distribution algorithm.