compute.funct: Implement standard functions

Description Usage Arguments Details Value

Description

This function implements one of several functions, based on an input code.

Usage

1
compute.funct(num.reps, funct, par1, par2 = NA, to.round = 3)

Arguments

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

Details

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

Value

A vector of values with length equal to num.reps


akeyel/spatialdemography documentation built on May 12, 2019, 4:43 a.m.