Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do we add 1 here? #15

Open
jysullivan opened this issue Aug 23, 2019 · 3 comments
Open

Why do we add 1 here? #15

jysullivan opened this issue Aug 23, 2019 · 3 comments

Comments

@jysullivan
Copy link
Member

reck = mfexp(log_reck) + 1.0; // recruitment compensation ratio

@smartell
Copy link

the parameter log_reck is estimated in log space. But the parameter reck must be > than 1.0, and cannot equal 1. Therefore, if you add 1, then even if log_reck is a negative number, this ensures that the constraint reck > 1 is met.

@jysullivan
Copy link
Member Author

jysullivan commented Aug 23, 2019

Thanks, @smartell, your explanation makes perfect sense. An important point of clarification: if I'm using the estimated log_reck outside of the model to estimate brps, should I use the transformation? It obviously has a large impact on the results...

reck <- exp(pars_s$log_reck) + 1 # FLAG - in her.tpl, he adds 1. Assuming we should do the same.

@smartell
Copy link

smartell commented Aug 24, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants