Feature/155 add ghq case scores 0 12#223
Closed
andrewbaxter439 wants to merge 8 commits intodevelopfrom
Closed
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements a feature to recalculate GHQ12 caseness scores (dhm_ghq) from a binary 0/1 scale to a continuous 0-12 scale, aligning with UKHLS standards. This change allows for more informative psychological distress measurement while maintaining backward compatibility through binary cutoff conversion.
- Converts
dhm_ghqfrom Boolean to Double type throughout the codebase - Updates regression models from Logit to Linear for GHQ case predictions
- Maintains backward compatibility by using >=4 cutoff for binary psychological distress indicator
Reviewed Changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| Person.java | Changes dhm_ghq field from Boolean to Double, updates related methods and constraints |
| Parameters.java | Converts GHQ case regression models from BinomialRegression to LinearRegression |
| RegressionName.java | Updates regression types from Logit to Linear for GHQ case models |
| ManagerRegressions.java | Moves GHQ case regressions from BinomialRegression to LinearRegression handler |
| 02_create_UKHLS_variables.do | Updates data processing to use 0-12 GHQ scale instead of binary caseness |
| Statistics files | Expected test output updates reflecting the model changes |
Collaborator
Author
Collaborator
Author
- made dhm_ghq linear - added ethnicity to stage 1 and financial distress to stage 2 of both processes
29868a6 to
59c65b6
Compare
justin-ven
added a commit
to justin-ven/SimPaths
that referenced
this pull request
Nov 17, 2025
1315114 to
030f300
Compare
Contributor
|
Merged with #294 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





What
dhm_ghq) as 0-12 (in line with UKHLS scghq2_dv)dhmanddhm_ghqto keep these in alignmentWhy
isPsychologicallyDistressedas a cutoff value (>=4) from this prediction