View source: R/make_egg_to_smolt_survival.R
make_egg_to_smolt_survival | R Documentation |
Simulate egg-to-smolt survival from the built-in
life_stage_survival
dataset using a truncated normal
distribution (Nieland and Sheehan 2020).
make_egg_to_smolt_survival(n = 1, a = 0, b = 0.023, mean = NULL, sd = NULL)
n |
Number of samples |
a |
Lower limit of truncated normal |
b |
Upper limit of truncated normal |
mean |
Mean of distribution. When 'mean = NULL' (default), the mean
value is parameterized from the built-in |
sd |
Standard deviation of distribution. When 'mean = NULL' (default),
the mean value is parameterized from the built-in
|
A vector of length 'n' containing egg-to-smolt survival estimates
Nieland JL, Sheehan TF. 2020. Quantifying the Effects of Dams on Atlantic Salmon in the Penobscot River Watershed, with a Focus on Weldon Dam. US Department of Commerce, Northeast Fisheries Science Center Reference Document 19-16, Woods Hole, MA.
# 1. Simulate a single value of egg-to-smolt survival ----
make_egg_to_smolt_survival()
# 2. Simulate 10,000 values of egg-to-smolt survival ----
samp <- make_egg_to_smolt_survival(n = 1e4)
hist(samp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.