{"id":13401208,"url":"https://github.com/carloscinelli/sensemakr","last_synced_at":"2025-10-22T06:05:29.589Z","repository":{"id":45055472,"uuid":"97495468","full_name":"carloscinelli/sensemakr","owner":"carloscinelli","description":"Suite of sensitivity analysis tools for OLS","archived":false,"fork":false,"pushed_at":"2024-07-14T04:00:37.000Z","size":20229,"stargazers_count":83,"open_issues_count":11,"forks_count":15,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-07-18T18:56:57.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://carloscinelli.com/sensemakr/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carloscinelli.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-07-17T16:06:05.000Z","updated_at":"2024-07-20T07:57:38.874Z","dependencies_parsed_at":"2024-01-18T11:04:06.127Z","dependency_job_id":"8947302d-c9a5-49b7-bf8a-cf5b6218a233","html_url":"https://github.com/carloscinelli/sensemakr","commit_stats":{"total_commits":417,"total_committers":9,"mean_commits":"46.333333333333336","dds":0.4388489208633094,"last_synced_commit":"9e8e16ab39fbf90dcbb972cf5f4c65a7794ff788"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloscinelli%2Fsensemakr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloscinelli%2Fsensemakr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloscinelli%2Fsensemakr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloscinelli%2Fsensemakr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carloscinelli","download_url":"https://codeload.github.com/carloscinelli/sensemakr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243538060,"owners_count":20307100,"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":[],"created_at":"2024-07-30T19:00:59.838Z","updated_at":"2025-10-22T06:05:29.508Z","avatar_url":"https://github.com/carloscinelli.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\neditor_options: \n  chunk_output_type: console\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  fig.align = \"center\",\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/figures-\"\n)\n```\n\n# sensemakr: Sensitivity Analysis Tools for OLS \u003cimg src=\"man/figures/sensemakr-logo-small.png\" align=\"right\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/sensemakr)](https://CRAN.R-project.org/package=sensemakr)\n[![Downloads](https://cranlogs.r-pkg.org/badges/sensemakr)](https://cran.r-project.org/package=sensemakr)\n[![R-CMD-check](https://github.com/chadhazlett/sensemakr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/chadhazlett/sensemakr/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\n`sensemakr` implements a suite of sensitivity analysis tools  that extends the traditional omitted variable bias framework and makes it easier  to understand the impact of omitted variables in regression models, as discussed in [Cinelli, C. and Hazlett, C. (2020) \"Making Sense of Sensitivity: Extending Omitted Variable Bias.\" Journal of the Royal Statistical Society, Series B (Statistical Methodology).]( https://doi.org/10.1111/rssb.12348) \n\n# News\n\n- Watch the [useR! 2020 presentation](https://www.youtube.com/watch?v=p3dfHj6ki68) for a quick introduction on sensemakr.\n\n- Check out the [software paper preprint](https://www.researchgate.net/publication/340965014_sensemakr_Sensitivity_Analysis_Tools_for_OLS_in_R_and_Stata)!\n\n- Check out the [Stata version](https://github.com/resonance1/sensemakr-stata) of the package!\n\n- Check out the  [Python version](https://github.com/nlapier2/PySensemakr) of the package!\n\n\n- Check out the Robustness Value Shiny App at: https://carloscinelli.shinyapps.io/robustness_value/\n\n- Check out the [package website](http://carloscinelli.com/sensemakr/)!\n\n\n# Details\n\nFor theoretical details, [please see the JRSS-B paper](https://www.researchgate.net/publication/322509816_Making_Sense_of_Sensitivity_Extending_Omitted_Variable_Bias). \n\n\nFor a practical introduction, [please see the software paper](https://www.researchgate.net/publication/340965014_sensemakr_Sensitivity_Analysis_Tools_for_OLS_in_R_and_Stata) or [see the package vignettes](http://carloscinelli.com/sensemakr/articles/sensemakr.html). \n\nFor a quick start, watch the 15 min tutorial on sensitivity analysis using sensemakr prepared for useR! 2020:\n\n\u003ciframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/p3dfHj6ki68\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen\u003e\u003c/iframe\u003e\n\n\n# CRAN\n\nTo install the current CRAN version run:\n\n```{r, eval = FALSE}\ninstall.packages(\"sensemakr\")\n```\n\n\n# Development version\n\nTo install the development version on GitHub make sure you have the package `devtools` installed.\n\n```{r, eval=FALSE}\n# install.packages(\"devtools\") \ndevtools::install_github(\"carloscinelli/sensemakr\")\n```\n\n# Citation\n\nPlease use the following citations:\n\n- [Cinelli, C., \u0026 Hazlett, C. (2020). \"Making sense of sensitivity: Extending omitted variable bias.\" Journal of the Royal Statistical Society: Series B (Statistical Methodology), 82(1), 39-67.](https://doi.org/10.1111/rssb.12348)\n\n- [Cinelli, C., \u0026 Ferwerda, J., \u0026 Hazlett, C. (2020). \"sensemakr: Sensitivity Analysis Tools for OLS in R and Stata.\"](https://www.researchgate.net/publication/340965014_sensemakr_Sensitivity_Analysis_Tools_for_OLS_in_R_and_Stata)\n\n# Basic usage\n\n\n```{r basic-usage, fig.align='center', collapse=T, dpi=300}\n# loads package\nlibrary(sensemakr)\n\n# loads dataset\ndata(\"darfur\")\n\n# runs regression model\nmodel \u003c- lm(peacefactor ~ directlyharmed + age + farmer_dar + herder_dar +\n                         pastvoted + hhsize_darfur + female + village, data = darfur)\n\n# runs sensemakr for sensitivity analysis\nsensitivity \u003c- sensemakr(model = model, \n                         treatment = \"directlyharmed\",\n                         benchmark_covariates = \"female\",\n                         kd = 1:3)\n\n# short description of results\nsensitivity\n\n# long description of results\nsummary(sensitivity)\n\n# plot bias contour of point estimate\nplot(sensitivity)\n\n# plot bias contour of t-value\nplot(sensitivity, sensitivity.of = \"t-value\")\n\n# plot bias contour of lower limit of confidence interval\nplot(sensitivity, sensitivity.of = \"lwr\")\n\n# plot extreme scenario\nplot(sensitivity, type = \"extreme\")\n\n# latex code for sensitivity table\novb_minimal_reporting(sensitivity)\n```\n\n```{r results='asis'}\n# html code for sensitivity table\novb_minimal_reporting(sensitivity, format = \"pure_html\")\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarloscinelli%2Fsensemakr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarloscinelli%2Fsensemakr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarloscinelli%2Fsensemakr/lists"}