Description Usage Arguments Details Value
This function implements one of several functions, based on an input code.
1 | compute.funct(num.reps, funct, par1, par2 = NA, to.round = 3)
|
num.reps |
The number of values to be created |
funct |
The function to use to create the values |
par1 |
See details for chosen function |
par2 |
See details for chosen function |
to.round |
Number of decimal places to round output values |
Function codes are as follows: 1 = log-normal distribution (par1 = mean, par2 = sd) 2 = normal distribution (par1 = mean, par2 = sd) 3 = constant (par1 = value, par2 = NA) 4 = uniform distribution, continuous values (par1 = lower bound, par2 = upper bound) 5 = uniform distribution, only integer values (par1 = lower bound, par2 = upper bound, par1 & 2 must be integers!) SEE Appendix S1 ODD description for more information
A vector of values with length equal to num.reps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.