Skip to content

Commit

Permalink
added section for AFEYE
Browse files Browse the repository at this point in the history
  • Loading branch information
Salva, Aldrich {MDBA~South San Francisco} committed Jul 20, 2023
1 parent c4b1cbd commit 5a40a52
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions vignettes/adoe.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,20 @@ adoe <- oe %>%
)
```

The next item of business is to derive `AVAL`, `AVALU`, and `DTYPE`. In this example, due to the small number of parameters their derivation is trivial. `AFEYE` is also created in this step using the function `derive_var_afeye()`. To determine the affected eye, this function compares `OELAT` to the `STUDYEYE` variable created from the previous step.

```{r}
adoe <- adoe %>%
# Calculate AVAL, AVALC, AVALU and DTYPE
mutate(
AVAL = OESTRESN,
AVALC = OESTRESC,
AVALU = OESTRESU,
DTYPE = NA_character_
) %>%
# Derive AFEYE needed for PARAMCD derivation
derive_var_afeye(OELOC, OELAT, loc_vals = c("EYE", "RETINA"))
```
## Further Derivations of Standard BDS Variables {#further}

The user is invited to consult the article on [creating a BDS dataset from SDTM](https://pharmaverse.github.io/admiral/cran-release/articles/bds_finding.html) to learn how to add standard BDS variables to ADOE.
Expand Down

0 comments on commit 5a40a52

Please sign in to comment.