https://github.com/insightsengineering/tern
Table, Listings, and Graphs (TLG) library for common outputs used in clinical trials
https://github.com/insightsengineering/tern
clinical-trials graphs listings nest outputs r tables
Last synced: 2 days ago
JSON representation
Table, Listings, and Graphs (TLG) library for common outputs used in clinical trials
- Host: GitHub
- URL: https://github.com/insightsengineering/tern
- Owner: insightsengineering
- License: other
- Created: 2021-07-05T21:43:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T15:07:24.000Z (3 days ago)
- Last Synced: 2025-04-11T15:50:35.874Z (3 days ago)
- Topics: clinical-trials, graphs, listings, nest, outputs, r, tables
- Language: R
- Homepage: https://insightsengineering.github.io/tern/
- Size: 279 MB
- Stars: 85
- Watchers: 21
- Forks: 25
- Open Issues: 64
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- top-pharma50 - **insightsengineering/tern** - trials`, `graphs`, `listings`, `nest`, `outputs`, `r`, `tables`<br><img src='https://github.com/HubTou/topgh/blob/main/icons/gstars.png'> 71 <img src='https://github.com/HubTou/topgh/blob/main/icons/forks.png'> 17 <img src='https://github.com/HubTou/topgh/blob/main/icons/code.png'> R <img src='https://github.com/HubTou/topgh/blob/main/icons/license.png'> Other <img src='https://github.com/HubTou/topgh/blob/main/icons/last.png'> 2024-06-04 22:41:07 | (Ranked by starred repositories)
- top-pharma50 - **insightsengineering/tern** - trials`, `graphs`, `listings`, `nest`, `outputs`, `r`, `tables`<br><img src='https://github.com/HubTou/topgh/blob/main/icons/gstars.png'> 71 <img src='https://github.com/HubTou/topgh/blob/main/icons/forks.png'> 17 <img src='https://github.com/HubTou/topgh/blob/main/icons/code.png'> R <img src='https://github.com/HubTou/topgh/blob/main/icons/license.png'> Other <img src='https://github.com/HubTou/topgh/blob/main/icons/last.png'> 2024-06-04 22:41:07 | (Ranked by starred repositories)
- jimsghstars - insightsengineering/tern - Table, Listings, and Graphs (TLG) library for common outputs used in clinical trials (R)
README
[](https://insightsengineering.github.io/tern/main/unit-test-report/)
[](https://insightsengineering.github.io/tern/)
[](https://insightsengineering.github.io/tern/main/coverage-report/)






[](https://www.repostatus.org/#active)
[](https://github.com/insightsengineering/tern/tree/main)
[](https://github.com/insightsengineering/tern/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)The `tern` R package contains analysis functions to create tables and graphs used for clinical trial reporting.
The package provides a large range of functionality, such as:
Data visualizations:
- Line plots ([`g_lineplot`](https://insightsengineering.github.io/tern/latest-tag/reference/g_lineplot.html))
- Kaplan-Meier plots ([`g_km`](https://insightsengineering.github.io/tern/latest-tag/reference/g_km.html))
- Forest plots ([`g_forest`](https://insightsengineering.github.io/tern/latest-tag/reference/g_forest.html))
- STEP graphs ([`g_step`](https://insightsengineering.github.io/tern/latest-tag/reference/g_step.html))
- Individual patient plots ([`g_ipp`](https://insightsengineering.github.io/tern/latest-tag/reference/g_ipp.html))
- Waterfall plots ([`g_waterfall`](https://insightsengineering.github.io/tern/latest-tag/reference/g_waterfall.html))
- Bland-Altman plots ([`g_bland_altman`](https://insightsengineering.github.io/tern/latest-tag/reference/g_bland_altman.html))Statistical model fit summaries:
- Logistic regression ([`summarize_logistic`](https://insightsengineering.github.io/tern/latest-tag/reference/summarize_logistic.html))
- Cox regression ([`summarize_coxreg`](https://insightsengineering.github.io/tern/latest-tag/reference/cox_regression.html))Analysis tables:
- See a list of all available analyze functions [here](https://insightsengineering.github.io/tern/latest-tag/reference/analyze_functions.html)
- See a list of all available summarize functions [here](https://insightsengineering.github.io/tern/latest-tag/reference/summarize_functions.html)
- See a list of all available column-wise analysis functions [here](https://insightsengineering.github.io/tern/latest-tag/reference/analyze_colvars_functions.html)Many of these outputs are available to be added into [`teal`](https://insightsengineering.github.io/teal/) shiny applications for interactive exploration of data. These `teal` modules are available in the [`teal.modules.clinical`](https://insightsengineering.github.io/teal.modules.clinical/) package.
See the [TLG Catalog](https://insightsengineering.github.io/tlg-catalog/) for an extensive catalog of example clinical trial tables, listings, and graphs created using `tern` functionality.
## Installation
`tern` is available on CRAN and you can install the latest released version with:
```r
install.packages("tern")
```or you can install the latest development version directly from GitHub by running the following:
```r
# install.packages("pak")
pak::pak("insightsengineering/tern")
```## Usage
To understand how to use this package, please refer to the [Introduction to `tern`](https://insightsengineering.github.io/tern/latest-tag/articles/tern.html) article, which provides multiple examples of code implementation.
See package vignettes `browseVignettes(package = "tern")` for usage of this package.
## Related
- [`rtables`](https://insightsengineering.github.io/rtables/) - table engine used
- [`tlg-catalog`](https://insightsengineering.github.io/tlg-catalog/) - website showcasing many examples of clinical trial tables, listings, and graphs
- [`teal.modules.clinical`](https://insightsengineering.github.io/teal.modules.clinical/) - `teal` modules for interactive data analysis## Acknowledgment
This package is the result of the joint efforts by many developers and stakeholders. We would like to thank everyone who has contributed so far!
## Stargazers and Forkers
### Stargazers over time
[](https://starchart.cc/insightsengineering/tern)
### Stargazers
[](https://github.com/insightsengineering/tern/stargazers)
[](https://github.com/insightsengineering/tern/network/members)