causens
An R package for causal sensitivity analysis methods
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
Repository
An R package for causal sensitivity analysis methods
Basic Info
- Host: GitHub
- Owner: Kuan-Liu-Lab
- License: other
- Language: R
- Default Branch: main
- Homepage: https://kuan-liu-lab.github.io/causens/
- Size: 5.95 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 12
- Releases: 1
Topics
Metadata Files
README.md
causens
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:
- Sensitivity function + propensity score (Li et al. (2011), Brumback et al. (2004))
- Bayesian parametric sensitivity analysis (McCandless et Gustafson (2017), Section 2.2)
- Monte Carlo sensitivity analysis (McCandless et Gustafson (2017), Section 2.3)
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
- Repositories: 1
- Profile: https://github.com/Kuan-Liu-Lab
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
Top Committers
| Name | 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
Pull Request Labels
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
- Homepage: https://kuan-liu-lab.github.io/causens/
- Documentation: http://cran.r-project.org/web/packages/causens/causens.pdf
- License: MIT + file LICENSE
-
Latest release: 0.0.3
published 9 months ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- r-lib/actions/setup-r v2 composite
- 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