Package: fdid 1.0.2

Yiqing Xu
fdid: Factorial Difference-in-Differences
Implements the factorial difference-in-differences (FDID) framework for panel data settings where all units are exposed to a universal event but vary in a baseline factor G. Provides support for various estimators; supports robust, bootstrap, and jackknife variance; returns dynamic, pre/event/post aggregates and raw means; and includes helpers for data preparation and plotting. Methodology follows Xu, Zhao and Ding (2026) <doi:10.1080/01621459.2026.2628343>.
Authors:
fdid_1.0.2.tar.gz
fdid_1.0.2.zip(r-4.7)fdid_1.0.2.zip(r-4.6)fdid_1.0.2.zip(r-4.5)
fdid_1.0.2.tgz(r-4.6-any)fdid_1.0.2.tgz(r-4.5-any)
fdid_1.0.2.tar.gz(r-4.7-any)fdid_1.0.2.tar.gz(r-4.6-any)
fdid_1.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
fdid/json (API)
| # Install 'fdid' in R: |
| install.packages('fdid', repos = c('https://xuyiqing.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/xuyiqing/fdid/issues
- mortality - FDID example dataset
Last updated from:defdd38995. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 147 | ||
| source / vignettes | OK | 223 | ||
| linux-release-x86_64 | OK | 165 | ||
| macos-release-arm64 | OK | 111 | ||
| macos-oldrel-arm64 | OK | 88 | ||
| windows-devel | OK | 111 | ||
| windows-release | OK | 108 | ||
| windows-oldrel | OK | 112 | ||
| wasm-release | OK | 123 |
Exports:fdidfdid_listfdid_prepare
Dependencies:abindbackportsbootbroomcarcarDataclicodetoolscolorspacecowplotcpp11DerivDiceKrigingdigestdoBydoFuturedplyrebalestimatrfarverforeachforecastFormulafracdifffuturefuture.applygenericsggplot2globalsgluegrfgtableisobanditeratorslabelinglatticelifecyclelistenvlme4lmtestmagrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrnlmenloptrnnetnumDerivparallellypbkrtestpillarpkgconfigpurrrquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangS7sandwichscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrzoo
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Factorial Difference-in-Differences Estimation | fdid |
| Create an `fdid_list` Object | fdid_list |
| Prepare Data for Factorial Difference-in-Differences Analysis | fdid_prepare |
| FDID example dataset | mortality |
| Plot Results from FDID Analysis | plot.fdid |
| Plot Multiple FDID Estimates | plot.fdid_list |
| Print Method for FDID Objects | print.fdid |
| Summary Method for FDID Objects | summary.fdid |