rifttable

rifttable: Results Tables to Bridge the Rift Between Epidemiologists and Their Data

https://github.com/stopsack/rifttable

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.7%) to scientific vocabulary

Keywords

descriptive-statistics epidemiology epidemiology-analysis epidemiology-models tables
Last synced: 6 months ago · JSON representation

Repository

rifttable: Results Tables to Bridge the Rift Between Epidemiologists and Their Data

Basic Info
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
descriptive-statistics epidemiology epidemiology-analysis epidemiology-models tables
Created about 3 years ago · Last pushed 9 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: 
  github_document:
    df_print: kable
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# Automated, Reproducible Generation of Results Tables: Bridging the Rift Between Epidemiologists and Their Data


[![R-CMD-check](https://github.com/stopsack/rifttable/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/stopsack/rifttable/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/stopsack/rifttable/graph/badge.svg)](https://app.codecov.io/gh/stopsack/rifttable)


Tables are the key format in which epidemiologists present their results. Many results tables in applied studies merely show point estimates and confidence intervals, or even p-values, from regression models: a “growing rift between epidemiologists and their data” ([Rothman 2017](https://doi.org/10.1007/s10654-017-0314-3)). “Actual,” descriptive data, such as counts stratified by exposure and a main confounder or effect modifier, are often lacking. 

**rifttable** creates presentation-ready results tables for epidemiologists in an automated, reproducible fashion. The user provides the final analytical dataset and specifies the design of the table, with rows and/or columns defined by exposure(s), effect modifier(s), and estimands as desired, allowing to show descriptors and inferential estimates in one table -- bridging the rift between epidemiologists and their data, one table at a time.


## Installation

The rifttable package can be installed from CRAN:

```{r, eval = FALSE}
install.packages("rifttable")
```

Development versions can be installed from 
[GitHub](https://stopsack.github.io/rifttable/) using:

```{r, eval = FALSE}
remotes::install_github("stopsack/rifttable")
```

The latter installation procedure requires the remotes package, obtainable via `install.packages("remotes")`.


## Example

```{r example}
library(rifttable)

example_design <- tibble::tribble(
  ~label,                       ~type,                   ~stratum,
  "Overall",                    "",                      "",
  "– Deaths/N",                 "outcomes/total",        c("Low", "High"),
  "– Risk",                     "risk",                  c("Low", "High"),
  "– Risk ratio (95% CI)",      "rr",                    c("Low", "High"),
  "– Risk difference (95% CI)", "rd",                    c("Low", "High"),
  "",                           "",                      "",
  "Low hormone receptor",       "",                      "",
  "– Deaths/N (Risk)",          "outcomes/total (risk)", "Low",
  "– Risk difference (95% CI)", "rd",                    "Low",
  "High hormone receptor",      "",                      "",
  "– Deaths/N (Risk)",          "outcomes/total (risk)", "High",
  "– Risk difference (95% CI)", "rd",                    "High"
) |> 
  dplyr::mutate(
    exposure = "stage",
    outcome = "death",
    effect_modifier = "receptor"
  )

rifttable(
  design = example_design,
  data = risks::breastcancer
)
```

For more examples, see the [Get Started vignette](https://stopsack.github.io/rifttable/articles/rifttable.html).

Owner

  • Name: Konrad H. Stopsack
  • Login: stopsack
  • Kind: user
  • Location: Boston, MA
  • Company: Massachusetts General Hospital

Epidemiologist

GitHub Events

Total
  • Watch event: 4
  • Push event: 18
  • Pull request event: 5
Last Year
  • Watch event: 4
  • Push event: 18
  • Pull request event: 5

Packages

  • Total packages: 1
  • Total downloads:
    • cran 522 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: rifttable

Results Tables to Bridge the Rift Between Epidemiologists and Their Data

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 522 Last month
Rankings
Dependent packages count: 26.3%
Dependent repos count: 32.4%
Average: 48.4%
Downloads: 86.6%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 3.5.0 depends
  • broom >= 0.7.0 imports
  • dplyr >= 1.0.8 imports
  • purrr * imports
  • risks >= 0.4.0 imports
  • rlang >= 0.4.0 imports
  • stats * imports
  • stringr * imports
  • survival * imports
  • tibble * imports
  • tidyr * imports
  • gt >= 0.8.0 suggests
  • knitr * suggests
  • markdown * suggests
  • quantreg * suggests
  • rmarkdown * suggests
  • sandwich * suggests
  • testthat >= 3.0.0 suggests