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

Remove dynamic risk factor mechanism #189

Merged
merged 7 commits into from
Jul 25, 2023
Merged

Remove dynamic risk factor mechanism #189

merged 7 commits into from
Jul 25, 2023

Conversation

jamesturner246
Copy link
Contributor

@jamesturner246 jamesturner246 commented Jul 24, 2023

Should be straightforward. Just a bunch of deleted code for the unused dynamic risk factor mechanism that is no longer needed in the hierarchical linear regression models.

I'll include @israel-vieira in the loop, if interested. Obviously no commitment to a review expected though!

Fixes #183

@jamesturner246 jamesturner246 marked this pull request as ready for review July 24, 2023 16:16
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

@dalonsoa dalonsoa left a comment

Choose a reason for hiding this comment

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

Is this model something truly obsolete that will not be needed anymore? Or is it still potentially useful but does not fit within the new way of defining models?

I'm just asking because deleting unused things is always good... as long as it is certain they will no longer be needed.

@jamesturner246
Copy link
Contributor Author

I discussed it with Israel, also included here, and the consensus seemed to be exactly that. I'm to understand that neither models use it, nor will use it.

Copy link
Contributor

@alexdewar alexdewar left a comment

Choose a reason for hiding this comment

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

A few small suggestions, but otherwise LGTM. Merge whenever you're done.

Are you finished with refactoring the config code for the time being btw? Is now a good time for me to work on #161?

src/HealthGPS.Console/configuration.cpp Outdated Show resolved Hide resolved
src/HealthGPS.Tests/HealthGPS.Test.cpp Outdated Show resolved Hide resolved
src/HealthGPS.Tests/HierarchicalMapping.Test.cpp Outdated Show resolved Hide resolved
src/HealthGPS/mapping.cpp Outdated Show resolved Hide resolved
@jamesturner246
Copy link
Contributor Author

jamesturner246 commented Jul 24, 2023

I will be removing e.g, the risk factors from the main config file, but it's up to you. If so, I'll try to be careful and synchronise.

Edit: I need to look over the course material for Thursday anyway, so if you like I can hold fire until you finish entirely.

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

@israel-vieira israel-vieira left a comment

Choose a reason for hiding this comment

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

Looks good, just two minor suggestions.

Note:

The dynamic factor was originally defined as part of a generic regression framework to represent dynamic risk factor for adults, it included a time dimension, usually year in the regression variables to move the population over time. This model was dropped in favor of the current EB model for children, never used, and the code removed from the main branch.

The new EB model is not regression-based, it is safe to remove the dynamic risk factor concept from the source code and configuration.

src/HealthGPS.Tests/HealthGPS.Test.cpp Show resolved Hide resolved
@alexdewar
Copy link
Contributor

@jamesturner246 Ok cool. For future reference, I'd probably have updated the config files in this PR too just to make sure the code still works. It's fine to do it later though. Maybe open an issue?

I'm happy to hold off on #161 until you've made those changes.

@jamesturner246
Copy link
Contributor Author

@alexdewar , the modifications to the config file required for this change are already done. I simply removed dynamic_risk_factor. The remaining changes of the config are for other PRs.

@jamesturner246 jamesturner246 enabled auto-merge July 25, 2023 09:34
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@jamesturner246 jamesturner246 merged commit aa71c14 into main Jul 25, 2023
@jamesturner246 jamesturner246 deleted the rm_dynamic_risk branch July 25, 2023 09:54
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.

Remove unused 'dynamic risk factor' mechanism
4 participants