epicmodel

Causal Modeling in Epidemiology

https://github.com/forsterepi/epicmodel

Science Score: 13.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
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.9%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Causal Modeling in Epidemiology

Basic Info
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Created almost 2 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



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

# epicmodel



[![R-CMD-check](https://github.com/forsterepi/epicmodel/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/forsterepi/epicmodel/actions/workflows/R-CMD-check.yaml)
[![CRAN status](https://www.r-pkg.org/badges/version/epicmodel)](https://CRAN.R-project.org/package=epicmodel)


## Overview

`epicmodel` is short for **"Causal Modeling in Epidemiology"** and wants to offer all necessary tools for a causal modeling workflow in R for epidemiologists. Causal modeling describes a structured process of making causal assumptions based on which an epidemiological study is conducted and its results are interpreted. We are always making causal assumptions, at least implicitly. Causal modeling is about doing so explicitly. Did you ever wonder what to measure, how to define your variables, or how to model your outcome of interest? If yes, chances are you need to think about your causal model in more detail.

Causal models are created by making causal assumptions (i.e., that variable A causes variable B) within a **causal modeling framework**. The current version of `epicmodel` focuses on one of these frameworks, sufficient-component cause (SCC) models, and offers a way to create them using R. SCC models describe, which sets of causes are in combination sufficient for the outcome of interest to occur.

The package documentation contains many terms with a specific meaning in the context of this package. Check the **glossary** for an overview: `vignette("glossary")`.

## Usage

Creating SCC models follows a three-step workflow (see `vignette("epicmodel")` for an overview):

1.  Create the input for SCC model creation, the so called **steplist**, using the built-in shiny app. See `vignette("steplist")` for details.
2.  Let `epicmodel` create the **SCC model** from the steplist
3.  Use the SCC model, e.g., for:

-   Estimating **standardized effect size**
-   Investigating the effect of **prevention** and **intervention**
-   Inspecting the **mechanisms** behind sufficient causes
-   Transforming the SCC model to a directed acyclic graph (**DAG**)

## Installation

For the latest release:

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

For the development version:

```{r, eval = FALSE}
# install.packages("devtools")
devtools::install_github("forsterepi/epicmodel")
```

Owner

  • Name: Felix Forster
  • Login: forsterepi
  • Kind: user
  • Location: Munich

Environmental/Occupational Epidemiologist

GitHub Events

Total
  • Create event: 5
  • Release event: 1
  • Issues event: 6
  • Issue comment event: 1
  • Push event: 39
Last Year
  • Create event: 5
  • Release event: 1
  • Issues event: 6
  • Issue comment event: 1
  • Push event: 39

Packages

  • Total packages: 1
  • Total downloads:
    • cran 185 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: epicmodel

Causal Modeling in Epidemiology

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 185 Last month
Rankings
Dependent packages count: 27.8%
Dependent repos count: 34.3%
Average: 49.7%
Downloads: 87.1%
Last synced: 12 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 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.5.0 composite
  • actions/checkout v4 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
  • DT * imports
  • DiagrammeR * imports
  • checkmate * imports
  • cli * imports
  • dagitty * imports
  • dplyr * imports
  • ggplot2 * imports
  • gtools * imports
  • magrittr * imports
  • methods * imports
  • prompter * imports
  • purrr * imports
  • rlang * imports
  • shiny * imports
  • shinyalert * imports
  • shinyjs * imports
  • shinythemes * imports
  • spsUtil * imports
  • stringr * imports
  • tibble * imports
  • tidyr * imports
  • ggdag * suggests
  • ggforce * suggests
  • ggraph * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • testthat >= 3.0.0 suggests