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

Nlog bmdu #67

Merged
merged 3 commits into from
Oct 16, 2024
Merged

Nlog bmdu #67

merged 3 commits into from
Oct 16, 2024

Conversation

cwsimmon
Copy link
Collaborator

Added bmdu calc for nlogistic model

Copy link
Collaborator

@shapiromatron shapiromatron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! a few minor edits and recommendations

@@ -9,6 +9,7 @@
#include <ctime>
//#include <cmath>
#include <nlopt.hpp>
#include <functional>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed. It was for something I had temporarily put in and then removed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it be removed? it looks like it's still included

@@ -4520,6 +4519,51 @@ void Nlogist_BMD(struct python_nested_analysis *pyAnal, struct python_nested_res
}
pyRes->bmdsRes.BMDL = BMDL;


//BMDU test
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

general comment - could this be written as an isolated function calcNlogisticBmdu(objData) instead of inline a really large function? it may make it easier to refactor in the future. This may not make sense in C++, apologies in advance.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I refactored this. This was definitely needed, but I've been putting this off just to get the code running. There will be many other places that need it also. I'll circle back and do more refactoring if I have the time.

Copy link
Collaborator

@shapiromatron shapiromatron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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

Successfully merging this pull request may close these issues.

2 participants