Skip to contents

Receives a set of parameters and generates a set of "x" ranking points that are uniformly random in a linear space and then calculates their expected "y" or abundance values. Function derived from: Fontanelli, O., Miramontes, P., Mansilla, R., Cocho, G., & Li, W. (2022). Beta rank function: A smooth double-Pareto-like distribution. Communications in Statistics - Theory and Methods, 51(11), 3645–3668. https://doi.org/10.1080/03610926.2020.1800739

Usage

BC_random(parameters)

Arguments

parameters

A numeric vector (A,a,b,max,n).

Value

A data frame with x,y values

Examples

BC_random(c(25,0.3,0.1,50,4))
#>        randomx  randomy
#> [1,]  4.037507 24.11828
#> [2,] 41.716652 10.08481
#> [3,] 30.038044 12.15231
#> [4,]  7.860422 19.57831

plot(BC_random(c(25,0.3,0.1,50,100)))