Simulate egg-to-smolt survival
make_egg_to_smolt_survival.Rd
Simulate egg-to-smolt survival from the built-in
life_stage_survival
dataset using a truncated normal
distribution (Nieland and Sheehan 2020).
Arguments
- 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
life_stage_survival
dataset. Values are based on available studies cited in Nieland and Sheehan (2020).- sd
Standard deviation of distribution. When `mean = NULL` (default), the mean value is parameterized from the built-in
life_stage_survival
dataset (Nieland and Sheehan 2020).
References
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.
Examples
# 1. Simulate a single value of egg-to-smolt survival ----
make_egg_to_smolt_survival()
#> [1] 0.01325209
# 2. Simulate 10,000 values of egg-to-smolt survival ----
samp <- make_egg_to_smolt_survival(n = 1e4)
hist(samp)