causens

An R package for causal sensitivity analysis methods

https://github.com/kuan-liu-lab/causens

Science Score: 46.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
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: pubmed.ncbi, ncbi.nlm.nih.gov, wiley.com
  • Committers with academic emails
    2 of 2 committers (100.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.3%) to scientific vocabulary

Keywords

causal-inference r sensitivity-analysis
Last synced: 6 months ago · JSON representation

Repository

An R package for causal sensitivity analysis methods

Basic Info
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 12
  • Releases: 1
Topics
causal-inference r sensitivity-analysis
Created over 2 years ago · Last pushed 9 months ago
Metadata Files
Readme License

README.md

causens

R-CMD-check <!-- badges: end -->

Why is it that more shark attacks occur when more ice cream is sold? The answer: both are related to the weather, here an unmeasured confounder.

Overview

{causens} is an R package that will allow to perform various sensitivity analysis methods to adjust for unmeasured confounding within the context of causal inference. Currently, we provide the following methods:

Installation

r install.packages("devtools") library(devtools) devtools::install_github("Kuan-Liu-Lab/causens") library(causens)

Quickstart

``` r library(causens)

Simulate data

data <- simulatedata(N = 10000, seed = 123, alphauz = 1, betauy = 1, treatmenteffects = 1)

Treatment model is incorrect since U is "missing"

causenssf(Z ~ X.1 + X.2 + X.3, "Y", data = data, c1 = 0.25, c0 = 0.25)$estimatedate ```

Citing

Please cite our software using:

@Manual{, title = {causens: Perform Causal Sensitivity Analyses Using Various Statistical Methods}, author = {Larry Dong and Yushu Zou and Kuan Liu}, year = {2024}, note = {R package version 0.0.3, https://github.com/Kuan-Liu-Lab/causens}, url = {https://kuan-liu-lab.github.io/causens/}, }

Getting help or contributing

Please report bugs by opening an issue. If you have a question regarding the usage of causens, please open a discussion. If you would like to contribute to the package, please open a pull request.

Owner

  • Name: Kuan-Liu-Lab
  • Login: Kuan-Liu-Lab
  • Kind: organization

GitHub Events

Total
  • Create event: 7
  • Release event: 1
  • Issues event: 6
  • Delete event: 13
  • Issue comment event: 4
  • Push event: 72
  • Pull request event: 11
Last Year
  • Create event: 7
  • Release event: 1
  • Issues event: 6
  • Delete event: 13
  • Issue comment event: 4
  • Push event: 72
  • Pull request event: 11

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 69
  • Total Committers: 2
  • Avg Commits per committer: 34.5
  • Development Distribution Score (DDS): 0.014
Past Year
  • Commits: 27
  • Committers: 1
  • Avg Commits per committer: 27.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Larry Dong l****g@m****a 68
Kuan Liu k****u@m****a 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 39
  • Total pull requests: 44
  • Average time to close issues: 3 months
  • Average time to close pull requests: 19 days
  • Total issue authors: 2
  • Total pull request authors: 1
  • Average comments per issue: 0.59
  • Average comments per pull request: 0.59
  • Merged pull requests: 35
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 6
  • Pull requests: 16
  • Average time to close issues: 3 months
  • Average time to close pull requests: 8 days
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.17
  • Average comments per pull request: 0.56
  • Merged pull requests: 11
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • larryshamalama (34)
  • Kuan-Liu (2)
Pull Request Authors
  • larryshamalama (68)
Top Labels
Issue Labels
enhancement (10) documentation (8) Bayesian (7) frequentist (6) super straightforward (5) GitHub CI/CD (4) tests (3) plots (2) maintenance (1) Low priority (1) bug (1) request discussion (1)
Pull Request Labels
documentation (5) frequentist (4) major (4) tests (3) plots (2) Bayesian (2) enhancement (2)

Packages

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

Perform Causal Sensitivity Analyses Using Various Statistical Methods

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 193 Last month
Rankings
Dependent packages count: 26.4%
Dependent repos count: 32.5%
Average: 48.5%
Downloads: 86.6%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
.github/workflows/lint-project.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/setup-r 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