{"id":28454244,"url":"https://github.com/kuan-liu-lab/causens","last_synced_at":"2025-07-05T08:02:29.856Z","repository":{"id":196765693,"uuid":"697076703","full_name":"Kuan-Liu-Lab/causens","owner":"Kuan-Liu-Lab","description":"An R package for causal sensitivity analysis methods","archived":false,"fork":false,"pushed_at":"2025-06-03T22:03:41.000Z","size":6235,"stargazers_count":1,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T19:03:41.237Z","etag":null,"topics":["causal-inference","r","sensitivity-analysis"],"latest_commit_sha":null,"homepage":"https://kuan-liu-lab.github.io/causens/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kuan-Liu-Lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-27T02:21:08.000Z","updated_at":"2025-06-03T21:54:23.000Z","dependencies_parsed_at":"2023-11-10T20:26:56.761Z","dependency_job_id":"9794b032-27a4-4fe4-8367-5c2da7a487b4","html_url":"https://github.com/Kuan-Liu-Lab/causens","commit_stats":null,"previous_names":["kuan-liu-lab/causens"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Kuan-Liu-Lab/causens","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuan-Liu-Lab%2Fcausens","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuan-Liu-Lab%2Fcausens/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuan-Liu-Lab%2Fcausens/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuan-Liu-Lab%2Fcausens/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kuan-Liu-Lab","download_url":"https://codeload.github.com/Kuan-Liu-Lab/causens/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuan-Liu-Lab%2Fcausens/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262387187,"owners_count":23303183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["causal-inference","r","sensitivity-analysis"],"created_at":"2025-06-06T19:00:52.233Z","updated_at":"2025-06-28T06:31:09.109Z","avatar_url":"https://github.com/Kuan-Liu-Lab.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# causens \u003ca href=\"https://kuan-liu-lab.github.io/causens/\"\u003e \u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"160\" /\u003e \u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n  [![R-CMD-check](https://github.com/Kuan-Liu-Lab/causens/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Kuan-Liu-Lab/causens/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\n_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._\n\n## Overview\n\n`{causens}` is an R package that will allow to perform various sensitivity\nanalysis methods to adjust for unmeasured confounding within the context of \ncausal inference. Currently, we provide the following methods:\n\n- Sensitivity function + propensity score ([Li et al. (2011)](https://pubmed.ncbi.nlm.nih.gov/21659349/), [Brumback et al. (2004)](https://onlinelibrary.wiley.com/doi/10.1002/sim.1657))\n- Bayesian parametric sensitivity analysis ([McCandless et Gustafson (2017), Section 2.2](https://onlinelibrary.wiley.com/doi/abs/10.1002/sim.7298))\n- Monte Carlo sensitivity analysis ([McCandless et Gustafson (2017), Section 2.3](https://onlinelibrary.wiley.com/doi/abs/10.1002/sim.7298))\n\n## Installation\n\n``` r\ninstall.packages(\"devtools\")\nlibrary(devtools)\ndevtools::install_github(\"Kuan-Liu-Lab/causens\")\nlibrary(causens)\n```\n\n## Quickstart\n\n``` r\nlibrary(causens)\n\n# Simulate data\ndata \u003c- simulate_data(N = 10000, seed = 123, alpha_uz = 1,\n                      beta_uy = 1, treatment_effects = 1)\n\n# Treatment model is incorrect since U is \"missing\"\ncausens_sf(Z ~ X.1 + X.2 + X.3, \"Y\", data = data, c1 = 0.25, c0 = 0.25)$estimated_ate\n```\n\n## Citing\n\nPlease cite our software using:\n\n```\n@Manual{,\n  title = {causens: Perform Causal Sensitivity Analyses Using Various Statistical Methods},\n  author = {Larry Dong and Yushu Zou and Kuan Liu},\n  year = {2024},\n  note = {R package version 0.0.3, https://github.com/Kuan-Liu-Lab/causens},\n  url = {https://kuan-liu-lab.github.io/causens/},\n}\n```\n\n## Getting help or contributing\n\nPlease report bugs by opening an\n[issue](https://github.com/Kuan-Liu-Lab/causens/issues/new). If you have\na question regarding the usage of `causens`, please open a\n[discussion](https://github.com/Kuan-Liu-Lab/causens/discussions/new/choose). \nIf you would like to contribute to the package, please open a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuan-liu-lab%2Fcausens","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuan-liu-lab%2Fcausens","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuan-liu-lab%2Fcausens/lists"}