https://github.com/insightsengineering/scda
Access Synthetic CDISC Data from Archive Packages
https://github.com/insightsengineering/scda
cdisc nest r synthetic-data
Last synced: about 1 year ago
JSON representation
Access Synthetic CDISC Data from Archive Packages
- Host: GitHub
- URL: https://github.com/insightsengineering/scda
- Owner: insightsengineering
- License: other
- Created: 2021-07-05T21:42:27.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-22T12:11:50.000Z (about 2 years ago)
- Last Synced: 2024-04-22T12:55:40.967Z (about 2 years ago)
- Topics: cdisc, nest, r, synthetic-data
- Language: R
- Homepage: https://insightsengineering.github.io/scda/
- Size: 8.44 MB
- Stars: 12
- Watchers: 23
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
> :warning: **WARNING**: `scda` is deprecated and no longer maintained. Use at your own risk.
# scda: Synthetic CDISC Data Archive Accessor Functions 
[](https://insightsengineering.github.io/scda/main/unit-test-report/)
[](https://insightsengineering.github.io/scda/)
[](https://insightsengineering.github.io/scda/main/coverage-report/)








[](https://www.repostatus.org/#active)
[](https://github.com/insightsengineering/scda/tree/main)
[](https://github.com/insightsengineering/scda/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
This R package contains functions for accessing synthetic CDISC from data archive packages such as [scda.2022](https://insightsengineering.github.io/scda.2022).
At least one of the archive packages should be installed in order to use this package.
This synthetic data can be used as test data when developing `teal` applications or, statistical analysis functions. Due to the data not being derived from a real clinical trials, it provides an excellent method for generating reproducible examples when reporting errors.
Note however, that this data is somewhat idealized and real trial data is often significantly more complex.
## Installation
It is recommended that you [create and use a Github PAT](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token) to install the latest version of this package. Once you have the PAT, run the following:
```r
Sys.setenv(GITHUB_PAT = "your_access_token_here")
if (!require("remotes")) install.packages("remotes")
remotes::install_github("insightsengineering/scda@*release")
```
A stable release of all `NEST` packages from June 2022 is also available [here](https://github.com/insightsengineering/depository#readme).
To install `scda.2022`, run the following:
```r
Sys.setenv(GITHUB_PAT = "your_access_token_here")
if (!require("remotes")) install.packages("remotes")
remotes::install_github("insightsengineering/scda.2022@*release")
```
Please see the [`scda.2022` package website](https://insightsengineering.github.io/scda.2022/) for more details.
## Basic Usage
You can see which data are available with
```r
library(scda)
ls_synthetic_cdisc_data()
```
And to load a specific data archive use
```r
# chose the first one
chosen_data_archive <- ls_synthetic_cdisc_data()$Name[1]
print(chosen_data_archive)
oldest_dfs <- synthetic_cdisc_data(chosen_data_archive)
names(oldest_dfs)
# chose the latest one
latest_dfs <- synthetic_cdisc_data("latest")
names(latest_dfs)
```
## Stargazers and Forkers
### Stargazers over time
[](https://starchart.cc/insightsengineering/scda)
### Stargazers
[](https://github.com/insightsengineering/scda/stargazers)
### Forkers
[](https://github.com/insightsengineering/scda/network/members)