{"id":26692667,"url":"https://github.com/apoorvalal/ivdiag","last_synced_at":"2025-04-12T23:38:20.228Z","repository":{"id":94835992,"uuid":"396208928","full_name":"apoorvalal/ivDiag","owner":"apoorvalal","description":"IV diagnostics package accompanying Lal, Lockhart, Xu, and Zu (2023). ","archived":false,"fork":false,"pushed_at":"2024-07-09T17:47:43.000Z","size":2883,"stargazers_count":7,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T23:38:18.231Z","etag":null,"topics":["bootstrap","econometrics","instrumental-variable","sensitivity-analysis"],"latest_commit_sha":null,"homepage":"https://arxiv.org/abs/2303.11399","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/apoorvalal.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","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":"2021-08-15T04:00:31.000Z","updated_at":"2025-03-10T18:23:09.000Z","dependencies_parsed_at":"2025-03-26T17:47:54.235Z","dependency_job_id":null,"html_url":"https://github.com/apoorvalal/ivDiag","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apoorvalal%2FivDiag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apoorvalal%2FivDiag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apoorvalal%2FivDiag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apoorvalal%2FivDiag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apoorvalal","download_url":"https://codeload.github.com/apoorvalal/ivDiag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647255,"owners_count":21139081,"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":["bootstrap","econometrics","instrumental-variable","sensitivity-analysis"],"created_at":"2025-03-26T17:34:32.802Z","updated_at":"2025-04-12T23:38:20.200Z","avatar_url":"https://github.com/apoorvalal.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# ivDiag\n\n\u003c!-- badges: start --\u003e\n\u003c!--\n[![Lifecycle:\nexperimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n--\u003e\n[![Lifecycle:\nstable](https://img.shields.io/badge/lifecycle-stable-green.svg)](https://www.tidyverse.org/lifecycle/#stablel)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![downloads: CRAN](https://cranlogs.r-pkg.org/badges/grand-total/ivDiag)](https://www.datasciencemeta.com/rpackages)\n\u003c!-- badges: end --\u003e\n\n**`ivDiag`** is toolkit for estimation and diagnostics with instrumental variable (IV) designs. It provides `R` implementations of the guidelines proposed in Lal et al. (2023), enabling researchers to obtain reliable and robust estimates of their IV models. \n\n**Examples:** `R` code used in the [tutorial](https://yiqingxu.org/packages/ivDiag/articles/iv_tutorial.html) can be downloaded from [here](https://raw.githubusercontent.com/apoorvalal/ivDiag/master/pkgdown/ivDiag_examples.R).\n\n**Reference:** : Lal, Apoorva, Mackenzie William Lockhart, Yiqing Xu, and Ziwen Zu (2023). [How Much Should We Trust Instrumental Variable Estimates in Political Science? Practical Advice Based on 67 Replicated Studies](https://yiqingxu.org/papers/english/2021_iv/LLXZ.pdf), Mimeo, Stanford University.\n\n***\n\n## Installation\n\nYou can install the **ivDiag** package from CRAN: \n```{r eval=FALSE}\ninstall.packages(\"ivDiag\", repos='http://cran.us.r-project.org')\n```\n\nYou can also install the up-to-date development version from Github: \n```{r eval=FALSE}\nlibrary(remotes)\ninstall_github(\"apoorvalal/ivDiag\")\n```\n\n**ivDiag** depends on the following packages, which will be installed automatically when **ivDiag** is being installed:\n```{r eval=FALSE}\nrequire(foreach) \nrequire(future)\nrequire(doParallel)\nrequire(lfe)\nrequire(fixest)  \nrequire(ggplot2)\nrequire(ggfortify)\nrequire(wCorr)\nrequire(haven)\nrequire(glue)\nrequire(patchwork)\nrequire(testthat)\n```\n\nYou can use the following code to install the required packages:\n```{r eval=FALSE}\ninstall_all \u003c- function(packages) {\n  installed_pkgs \u003c- installed.packages()[, \"Package\"]\n  for (pkg in packages) {\n    if (!pkg %in% installed_pkgs) {\n      install.packages(pkg)\n    }\n  }\n}\n\npackages \u003c- c(\"foreach\", \"future\", \"doParallel\", \"lfe\", \"fixest\", \"ggplot2\", \n              \"ggfortify\", \"wCorr\", \"haven\", \"glue\", \"patchwork\", \"testthat\")\ninstall_all(packages)\n```  \n\n***\n\n## Report bugs\n\nThis package is a work in progress. [Github](https://github.com/apoorvalal/ivDiag) issues and/or pull requests are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapoorvalal%2Fivdiag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapoorvalal%2Fivdiag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapoorvalal%2Fivdiag/lists"}