-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for list of age breaks, supporting overlapping age brea…
…k intervals. Using StandardAnalysisAPI 1.6.0-SNAPSHOT. Updated StrataSettings R6 class with new field: ageBreakList. Fixes #30.
- Loading branch information
1 parent
449a68c
commit 3c83e66
Showing
22 changed files
with
461 additions
and
211 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file renamed
BIN
+82.5 KB
...ava/standardized-analysis-specs-1.5.0.jar → ...ardized-analysis-specs-1.6.0-SNAPSHOT.jar
Binary file not shown.
This file contains 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
3 changes: 3 additions & 0 deletions
3
java/main/resources/resources/cohortincidence/sql/ageGroupJoin.sql
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
LEFT JOIN @results_database_schema.age_group_def ag ON ag.ref_id = @ref_id | ||
and t1.age >= coalesce(ag.min_age, -999) | ||
and t1.age < coalesce(ag.max_age, 999) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
43 changes: 43 additions & 0 deletions
43
java/test/resources/cohortincidence/timeAtRisk/strataByAgeBreakListTest.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"targetDefs": [ | ||
{ | ||
"id": 100, | ||
"name": "Target Cohort 1" | ||
} | ||
], | ||
"outcomeDefs": [ | ||
{ | ||
"id": 1, | ||
"name": "Outcome Cohort 1", | ||
"cohortId": 200, | ||
"cleanWindow": 30 | ||
} | ||
], | ||
"timeAtRiskDefs": [ | ||
{ | ||
"id": 1, | ||
"start": { | ||
"dateField": "start", | ||
"offset": 0 | ||
}, | ||
"end": { | ||
"dateField": "start", | ||
"offset": 90 | ||
} | ||
} | ||
], | ||
"strataSettings": { | ||
"byAge": true, | ||
"byGender": false, | ||
"byYear": false, | ||
"ageBreaks": [17, 35, 65], | ||
"ageBreakList": [[17], [35], [65]] | ||
}, | ||
"analysisList": [ | ||
{ | ||
"targets": [100], | ||
"outcomes": [1], | ||
"tars": [1] | ||
} | ||
] | ||
} |
Oops, something went wrong.