Analysis Results Data

Construct CDISC (Clinical Data Interchange Standards Consortium) compliant Analysis Results Data objects. These objects are used and re-used to construct summary tables, visualizations, and written reports. The package also exports utilities for working with these objects and creating new Analysis Results Data objects.


cards cards website

CRANstatus Codecov testcoverage Downloads R-CMD-check

The CDISC Analysis Results Standard aims to facilitate automation, reproducibility, reusability, and traceability of analysis results data (ARD). The {cards} package creates these CDISC Analysis Result Data Sets.

Use cases:

  1. Quality Control (QC) of existing tables and figures.

  2. Pre-calculate statistics to be summarized in tables and figures.

  3. Medical writers may easily access statistics and place in reports without copying and pasting from reports.

  4. Provides a consistent format for results and lends results to be combined across studies for re-use and re-analysis.

Installation

Install cards from CRAN with:

install.packages("cards")

You can install the development version of cards from GitHub with:

# install.packages("pak")
pak::pak("pharmaverse/cards")

Extensions

cardx website

The {cards} package exports three types of functions:

  1. Functions to create basic ARD objects.

  2. Utilities to create new ARD objects.

  3. Functions to work with existing ARD objects.

The {cardx} R package is an extension to {cards} that uses the utilities from {cards} and exports functions for creating additional ARD objects––including functions to summarize t-tests, Wilcoxon Rank-Sum tests, regression models, and more.

Getting Started

Review the Getting Started page for examples using ARDs to calculate statistics to later include in tables.

library(cards)

ard_summary(ADSL, by = "ARM", variables = "AGE")
#> # An ARD data frame: 24 × 10
#>    group1 group1_level       variable context stat_name stat_label  stat fmt_fun
#>    <chr>  <list>             <chr>    <chr>   <chr>     <chr>      <lis>  <list>
#>  1 ARM    Placebo            AGE      summary N         N          86          0
#>  2 ARM    Placebo            AGE      summary mean      Mean       75.2        1
#>  3 ARM    Placebo            AGE      summary sd        SD          8.59       1
#>  4 ARM    Placebo            AGE      summary median    Median     76          1
#>  5 ARM    Placebo            AGE      summary p25       Q1         69          1
#>  6 ARM    Placebo            AGE      summary p75       Q3         82          1
#>  7 ARM    Placebo            AGE      summary min       Min        52          1
#>  8 ARM    Placebo            AGE      summary max       Max        89          1
#>  9 ARM    Xanomeline High D… AGE      summary N         N          84          0
#> 10 ARM    Xanomeline High D… AGE      summary mean      Mean       74.4        1
#> # ℹ 14 more rows
#> # ℹ 2 more variables: warning <list>, error <list>

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cards")

0.9.0 by Daniel D. Sjoberg, 2 months ago


https://github.com/pharmaverse/cards, https://pharmaverse.github.io/cards/


Report a bug at https://github.com/pharmaverse/cards/issues


Browse source code at https://github.com/cran/cards


Authors: Daniel D. Sjoberg [aut, cre] (ORCID: , Becca Krouse [aut] , Emily de la Rua [aut] , Davide Garolini [aut] , Malan Bosman [aut] , Alanah Jonas [aut] , F. Hoffmann-La Roche AG [cph, fnd] , GlaxoSmithKline Research & Development Limited [cph]


Documentation:   PDF Manual  


Apache License 2.0 license


Imports cli, dplyr, glue, lifecycle, pillar, rlang, tibble, tidyr, tidyselect, vctrs

Suggests testthat, withr


Imported by broom.helpers, campsisnca, cardx, crane, gtsummary, mccount.

Depended on by cardinalfda.

Suggested by derrick, halfmoon, rbmiUtils, siera, tfrmt, trialdiff.


See at CRAN