insightsengineering / insightsengineering/random.cdisc.data

RADEX: Update to be consistent with treatment arms.

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
enhancement New sme SP3
Dominant language
R
Stars
45
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Please update logic for ADEX starting with records where PARCAT1 = INDIVIDUAL. Currently subjects are randomly assigned to Drug A or Drug B (in PARCAT2) but instead the assigned drug should be consistent with ADSL. ARM.

The table below represents the metadata that should drive how the random data is generated. Feel free to rewrite or simplify current code as needed.

PARCAT2 | Arms this drug applies to | Single Dose (EXDOSE) | Dosing Schedule
-- | -- | -- | --
Drug X | Arm A or Arm C | 10mg | Daily
Placebo | Arm B | 0mg | Daily
Drug Y | Arm C | 50mg | Every 7 days

Please also update AVISIT/AVISITN to be by CYCLE X (1, 2, 3,....). You can assume each cycle is 28 days. Note AVISTIT/AVISITN should not include SCREENING and BASELINE.

Please also add missing variables:
```
AVALC
ANL01FL
```

Please open up a PR once the randomization for PARCAT1 = INDIVIDUAL is ready. Then can move on to the PARCAT2 = OVERALL records.

Provenance:
```
Creator: anajens
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.