Mercurial > repos > greg > insect_phenology_model
changeset 65:4d86920b1a6e draft
Uploaded
author | greg |
---|---|
date | Thu, 21 Nov 2019 15:31:50 -0500 (2019-11-21) |
parents | 883d812611b3 |
children | 662a95a28359 |
files | insect_phenology_model.R |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/insect_phenology_model.R Thu Nov 21 12:06:25 2019 -0500 +++ b/insect_phenology_model.R Thu Nov 21 15:31:50 2019 -0500 @@ -286,7 +286,7 @@ mortality.probability[mortality.probability<0] = 0; } # Make mortality adjustments based on adj parameter. - mortality.probability = (100 - mortality.probability) * adj + mortality.probability; + mortality.probability = (100 - mortality.probability) * (1+adj) + mortality.probability; # if mortality > 100, make it equal to 100. mortality.probability[mortality.probability>100] = 100; # If mortality <0, make equal to 0.