-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# derive_var_ontrtfl Test 15: if trt end date is missing, the obs may still be flagged | ||
|
||
Code | ||
derive_var_ontrtfl(adcm, start_date = ASTDT, end_date = AENDT, ref_start_date = TRTSDT, | ||
ref_end_date = TRTEDT, span_period = "Y") | ||
Output | ||
USUBJID ASTDT TRTSDT TRTEDT AENDT ONTRTFL | ||
1 P01 2018-03-15 2019-01-01 NA 2022-12-01 Y | ||
2 P02 2020-04-30 2019-01-01 NA 2022-03-15 Y | ||
3 P03 2020-04-30 2019-01-01 NA <NA> Y | ||
|
||
--- | ||
|
||
Code | ||
derive_var_ontrtfl(adcm, start_date = ASTDT, end_date = AENDT, ref_start_date = TRTSDT, | ||
ref_end_date = TRTEDT) | ||
Output | ||
USUBJID ASTDT TRTSDT TRTEDT AENDT ONTRTFL | ||
1 P01 2018-03-15 2019-01-01 NA 2022-12-01 <NA> | ||
2 P02 2020-04-30 2019-01-01 NA 2022-03-15 Y | ||
3 P03 2020-04-30 2019-01-01 NA <NA> Y | ||
|
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