Bai-Li-NOAA / Age_Structured_Stock_Assessment_Model_Comparison

Other
0 stars 6 forks source link

Add constraints to deviation generators #6

Open Bai-Li-NOAA opened 2 years ago

Bai-Li-NOAA commented 2 years ago

ADMB stock assessment models add constraints to their recruitment deviation estimates. For example, the mean and sum of the recruitment deviations from BAM and ASAP are 0. However, the operating model from the model comparison project uses rnorm without constraints. The mean and sum of the randomly generated recruitment deviations will not be zero. The comparisons between OM and EMs could be found here: https://github.com/Bai-Li-NOAA/homework/blob/main/recruitment_deviations_check/recdev_check.md

To do:

Thanks Kyle Shertzer for pointing out the issue!

k-doering-NOAA commented 2 years ago

@Bai-Li-NOAA , I'm not sure this is relevant , but I know there is some sort of bug with using sum-to-zero vectors in admb with MCMC. I'm pretty sure you are doing everything in R, but just in case thought I would mention!

iantaylor-NOAA commented 2 years ago

Here's the ADMB issue: https://github.com/admb-project/admb/issues/107. @Bai-Li-NOAA, it sounds like you're just talking about adding zero-sum vectors as an option in the OM, so can safely ignore this issue.

Bai-Li-NOAA commented 2 years ago

Thanks @k-doering-NOAA and @iantaylor-NOAA for mentioning the ADMB issue. I learn something new every time.

Yes, I am modifying the operating model in R, so no worries there.