powered by
Sample the downsize proportion - proportion of removed workers in downsizing - used when p = NULL (see SimParamBee$downsizeP).
p = NULL
SimParamBee$downsizeP
This is just an example. You can provide your own functions that satisfy your needs!
downsizePUnif(colony, n = 1, min = 0.8, max = 0.9)
numeric, downsize proportion
Colony-class
integer, number of samples
numeric, lower limit for downsizePUnif
downsizePUnif
numeric, upper limit for downsizePUnif
SimParamBee field downsizeP
SimParamBee
downsizeP
downsizePUnif() downsizePUnif() p <- downsizePUnif(n = 1000) hist(p, breaks = seq(from = 0, to = 1, by = 0.01), xlim = c(0, 1))
Run the code above in your browser using DataLab