Gilead-BioStats / gsm

Good Statistical Monitoring R Package
https://gilead-biostats.github.io/gsm/
Apache License 2.0
39 stars 9 forks source link

Feature: Update `kri0007`/`cou0007` to select unique values of `subjid`. #1959

Open samussiah opened 5 hours ago

samussiah commented 5 hours ago

Feature Details

Replace SELECT * FROM df WHERE sdrgyn = 'N' AND phase = 'Blinded Study Drug Completion' with SELECT DISTINCT subjid FROM df WHERE sdrgyn = 'N'.

Example Code

Possible Implementation

Additional Comments

For broader compatibility, with gsm.datasim and actual study data.

lauramaxwell commented 5 hours ago

@samussiah so, phase is no longer required in the specs for these?

samussiah commented 5 hours ago

For the most generic, broadly applicable approach it's not required. In practice phase, extrt, and sdrgreas are all used but that can always be added to the mapping spec as needed.