The sdtmchecks package contains functions to identify common data issues in SDTM data. These checks are intended to be generalizable, actionable, and meaningful for analysis.
You can install {sdtmchecks} from CRAN:
install.packages("sdtmchecks")
The development version (based on the default devel branch) can be installed via:
install.packages("sdtmchecks", repos = "https://pharmaverse.r-universe.dev")
Or, via GitHub repo
pharmaverse/sdtmchecks@HEAD
:
# install.packages("devtools")
devtools::install_github("pharmaverse/sdtmchecks")
# Note that `ref = "devel"` is not needed since devel is the default branch
The Get started page walks you through how the package can be used.
To search available data check functions, please see this search page.
The main data check functions of the package are saved as R program files beginning with “check_…” and are referenced under the Data Checks portion of the Reference page.
This package aims to be SDTM version agnostic and does not require users to specify the version.
This package has been developed internally at Roche since 2014. There may be areas where the checks expect Roche-specific SDTM implementation choices. Proposed additions or modifications should attempt to maintain generalizability for slightly different data standards across companies. For examples on how to do so and to learn more about contributing in general, please refer to the Writing a New Check page.
If you have an idea for a new check but no time for development, please open an issue.
The package FAQs may provide additional information you are looking for. If not, please feel free to post your question as an issue.