get_recdevs: Return a set of recruitment deviations

Description Usage Arguments Value Examples

View source: R/get_recdevs.r

Description

This function returns a set of pseudo-random recruitment deviations based on an iteration number. Given the same iteration number the function will return the same recruitment deviations. The deviations are standard normal. I.e., they have a mean of 0 and a standard deviation of 1.

Usage

1
get_recdevs(iteration, n, seed = 21)

Arguments

iteration

The iteration number. This is used as an ID to set the random number seed.

n

The length of the vector returned.

seed

An integer value to pass to set.seed.

Value

A vector of standard normal recruitment deviations.

Examples

1
2
3
get_recdevs(1, 10)
get_recdevs(1, 10)
get_recdevs(2, 10)

ss3sim documentation built on Nov. 9, 2019, 1:06 a.m.