pjve90 / LCV_RD_ABM

0 stars 0 forks source link

Reproductive cost #14

Closed pjve90 closed 1 year ago

pjve90 commented 1 year ago

Decouple cost from threshold

https://github.com/pjve90/LCV_RD_ABM/blob/9c4966d3a5f8ce9cc4d8a40526da17d11f1aed78/Model_code/ABM_code_final.R#L125C24-L126

pjve90 commented 1 year ago

I just defined the reproductive cost, and made explicit in other functions to always sum survival and reproductive costs

https://github.com/pjve90/LCV_RD_ABM/blob/7d31cb872a8fb8adf6e1805095e182ad47b4dd8b/Model_code/ABM_code_final.R#L130-L131

https://github.com/pjve90/LCV_RD_ABM/blob/7d31cb872a8fb8adf6e1805095e182ad47b4dd8b/Model_code/reproduction_discount.R#L7-L10

https://github.com/pjve90/LCV_RD_ABM/blob/7d31cb872a8fb8adf6e1805095e182ad47b4dd8b/Model_code/reproduction_reproduce_fx.R#L7-L14

https://github.com/pjve90/LCV_RD_ABM/blob/7d31cb872a8fb8adf6e1805095e182ad47b4dd8b/Model_code/transition_fx.R#L7-L37