gfoRmula

The gfoRmula package implements the parametric g-formula in R. The parametric g-formula (Robins, 1986) uses longitudinal data with time-varying treatments and confounders to estimate the risk or mean of an outcome under hypothetical treatment strategies specified by the user.

https://github.com/causalinference/gformula

Science Score: 23.0%

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

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    2 of 3 committers (66.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.7%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

The gfoRmula package implements the parametric g-formula in R. The parametric g-formula (Robins, 1986) uses longitudinal data with time-varying treatments and confounders to estimate the risk or mean of an outcome under hypothetical treatment strategies specified by the user.

Basic Info
  • Host: GitHub
  • Owner: CausalInference
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 2.07 MB
Statistics
  • Stars: 174
  • Watchers: 15
  • Forks: 69
  • Open Issues: 5
  • Releases: 0
Created almost 7 years ago · Last pushed about 1 year ago
Metadata Files
Readme

README.Rmd

---
output: github_document
---



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


[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/gfoRmula)](https://cran.r-project.org/package=gfoRmula)
[![R-CMD-check](https://github.com/CausalInference/gfoRmula/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/CausalInference/gfoRmula/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/CausalInference/gfoRmula/graph/badge.svg)](https://app.codecov.io/gh/CausalInference/gfoRmula)


## Installation

You can install the released version of `gfoRmula` from CRAN with:

``` r
install.packages("gfoRmula")
```

After installing the `devtools` package (i.e., calling `install.packages(devtools)`), the development version of `gfoRmula` can be installed from GitHub with:
``` r
devtools::install_github("CausalInference/gfoRmula")
```

## Usage

Please refer to [McGrath et al. (2020)](https://doi.org/10.1016/j.patter.2020.100008) for a detailed guide to the `gfoRmula` package. Also, see the following vignettes regarding updates since McGrath et al. (2020):

* "A Simplified Approach for Specifying Interventions in gfoRmula"
* "Using Custom Outcome Models in gfoRmula"

Owner

  • Name: CAUSALab
  • Login: CausalInference
  • Kind: organization
  • Email: CAUSALab@hsph.harvard.edu

A Center to Learn What Works

GitHub Events

Total
  • Issues event: 17
  • Watch event: 26
  • Issue comment event: 29
  • Push event: 3
  • Fork event: 6
Last Year
  • Issues event: 17
  • Watch event: 26
  • Issue comment event: 29
  • Push event: 3
  • Fork event: 6

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 62
  • Total Committers: 3
  • Avg Commits per committer: 20.667
  • Development Distribution Score (DDS): 0.065
Past Year
  • Commits: 18
  • Committers: 1
  • Avg Commits per committer: 18.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Sean McGrath s****h@h****u 58
Louisa Smith l****h 3
Louisa Smith l****h@d****u 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 37
  • Total pull requests: 5
  • Average time to close issues: 3 months
  • Average time to close pull requests: 1 minute
  • Total issue authors: 28
  • Total pull request authors: 4
  • Average comments per issue: 2.84
  • Average comments per pull request: 0.8
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 6
  • Pull requests: 0
  • Average time to close issues: 8 days
  • Average time to close pull requests: N/A
  • Issue authors: 6
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • sally741 (4)
  • njawadekar (4)
  • JerzyEG (2)
  • chenlan26 (2)
  • ChristelSwift (2)
  • boyercb (2)
  • joannadiong (2)
  • dzugna (1)
  • sebastiaan-blank (1)
  • rbarnardmayers (1)
  • lijiaqi-github (1)
  • mskypala (1)
  • pychan-polly (1)
  • suthlam (1)
  • guanchengcheng (1)
Pull Request Authors
  • rwlogan (2)
  • stmcg (1)
  • resace3 (1)
  • andrewbaxter439 (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 507 last-month
  • Total docker downloads: 21,613
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 11
  • Total maintainers: 1
cran.r-project.org: gfoRmula

Parametric G-Formula

  • Versions: 11
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 507 Last month
  • Docker Downloads: 21,613
Rankings
Docker downloads count: 0.6%
Forks count: 1.4%
Stargazers count: 3.2%
Average: 13.4%
Downloads: 22.7%
Dependent repos count: 23.8%
Dependent packages count: 28.6%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • data.table * imports
  • ggplot2 * imports
  • ggpubr * imports
  • grDevices * imports
  • nnet * imports
  • parallel * imports
  • progress * imports
  • stats * imports
  • stringr * imports
  • survival * imports
  • truncnorm * imports
  • truncreg * imports
  • utils * imports
  • Hmisc * suggests