{
  "_id": "6b004acfa59869b7085818b1",
  "Package": "fetwfe",
  "Title": "Fused Extended Two-Way Fixed Effects",
  "Version": "1.10.1",
  "Authors@R": "person(given = \"Gregory\", family = \"Faletto\", email = \"gfaletto@gmail.com\", role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0001-8298-1401\"))",
  "Maintainer": "Gregory Faletto <gfaletto@gmail.com>",
  "Description": "Calculates the fused extended two-way fixed effects\n(FETWFE) estimator for unbiased and efficient estimation of\ndifference-in-differences in panel data with staggered\ntreatment adoption. This estimator eliminates bias inherent in\nconventional two-way fixed effects estimators, while also\nemploying a novel bridge regression regularization approach to\nimprove efficiency and yield valid standard errors. Also\nimplements extended TWFE (etwfe) and bridge-penalized ETWFE\n(betwfe). Provides S3 classes for streamlined workflow and\nsupports flexible tuning (ridge and rank-condition guarantees),\nautomatic covariate centering/scaling, and detailed overall and\ncohort-specific effect estimates with valid standard errors.\nIncludes simulation and formatting utilities, extensive\ndiagnostic tools, vignettes, and examples. See Faletto (2025)\n(<doi:10.48550/arXiv.2312.05985>).",
  "URL": "https://github.com/gregfaletto/fetwfePackage",
  "BugReports": "https://github.com/gregfaletto/fetwfePackage/issues",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-20 13:23:20 UTC",
    "User": "root"
  },
  "Author": "Gregory Faletto [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-8298-1401>)",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-20 08:50:25 UTC",
  "RemoteUrl": "https://github.com/cran/fetwfe",
  "RemoteRef": "HEAD",
  "RemoteSha": "eeb0d4bec509426c425c1f143ea0736beb687e7d",
  "_user": "cran",
  "_type": "src",
  "_file": "fetwfe_1.10.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/4d69ab935965b3a57da09157cb35a01874aad902ecf0731da16c0c71ee015902",
  "_filesize": 801337,
  "_sha256": "4d69ab935965b3a57da09157cb35a01874aad902ecf0731da16c0c71ee015902",
  "_expires": "2027-02-28T13:27:42.000Z",
  "_created": "2026-11-20T13:23:20.000Z",
  "_published": "2026-11-20T13:27:43.641Z",
  "_upstream": "https://github.com/cran/fetwfe",
  "_status": "success",
  "_maintainer": {
    "name": "Gregory Faletto",
    "email": "gfaletto@gmail.com",
    "login": "gregfaletto",
    "bluesky": "@gregoryfaletto.com",
    "description": "Statistician and data scientist. Interested in feature selection, causal inference, & modeling with applications in social science and business.",
    "uuid": 25394975,
    "orcid": "0000-0001-8298-1401"
  },
  "_jobs": [
    {
      "job": 136314263109,
      "time": 204,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14633035176"
    },
    {
      "job": 136314263190,
      "time": 220,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14631749329"
    },
    {
      "job": 136312291246,
      "time": 239,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14631923406"
    },
    {
      "job": 136314263128,
      "time": 133,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14632621506"
    },
    {
      "job": 136314263201,
      "time": 211,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14632043239"
    },
    {
      "job": 136314263104,
      "time": 162,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14632690773"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/44743303054",
  "_commit": {
    "id": "eeb0d4bec509426c425c1f143ea0736beb687e7d",
    "author": "Gregory Faletto <gfaletto@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.10.1\n",
    "time": 1795164625
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "generics",
      "role": "Imports"
    },
    {
      "package": "glmnet",
      "role": "Imports"
    },
    {
      "package": "grpreg",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "version": ">= 1.6-0",
      "role": "Imports"
    },
    {
      "package": "bacondecomp",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "did",
      "role": "Suggests"
    },
    {
      "package": "expm",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "broom",
      "role": "Suggests"
    },
    {
      "package": "lme4",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-21",
      "n": 1
    },
    {
      "week": "2026-47",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.10.0",
      "date": "2026-05-24"
    },
    {
      "name": "1.10.1",
      "date": "2026-11-20"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "gregfaletto",
      "count": 5,
      "uuid": 25394975
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 636,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 478,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fetwfe"
  },
  "_devurl": "https://github.com/gregfaletto/fetwfepackage",
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/fetwfe.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/gregfaletto/fetwfepackage",
  "_realowner": "gregfaletto",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.4.4",
      "date": "2025-02-21"
    },
    {
      "version": "1.0.0",
      "date": "2025-05-15"
    },
    {
      "version": "1.5.0",
      "date": "2025-07-02"
    },
    {
      "version": "1.10.0",
      "date": "2026-05-24"
    },
    {
      "version": "1.10.1",
      "date": "2026-11-20"
    }
  ],
  "_authors": [
    {
      "name": "Gregory Faletto",
      "email": "gfaletto@gmail.com",
      "orcid": "0000-0001-8298-1401",
      "role": [
        "aut",
        "cre"
      ]
    }
  ],
  "_exports": [
    "attgtToFetwfeDf",
    "betwfe",
    "betwfeWithSimulatedData",
    "etwfe",
    "etwfeToFetwfeDf",
    "etwfeWithSimulatedData",
    "eventStudy",
    "fetwfe",
    "fetwfeWithSimulatedData",
    "genCoefs",
    "genCoefsCore",
    "getTes",
    "simulateData",
    "simulateDataCore",
    "twfeCovs",
    "twfeCovsWithSimulatedData"
  ],
  "_help": [
    {
      "page": "attgtToFetwfeDf",
      "title": "Convert data formatted for 'att_gt()' to a dataframe suitable for 'fetwfe()' / 'etwfe()'",
      "topics": [
        "attgtToFetwfeDf"
      ]
    },
    {
      "page": "augment.betwfe",
      "title": "Augment user-supplied data with fitted values and residuals from a betwfe fit",
      "topics": [
        "augment.betwfe"
      ]
    },
    {
      "page": "augment.etwfe",
      "title": "Augment user-supplied data with fitted values and residuals from an etwfe fit",
      "topics": [
        "augment.etwfe"
      ]
    },
    {
      "page": "augment.fetwfe",
      "title": "Augment user-supplied data with fitted values and residuals from a fetwfe fit",
      "topics": [
        "augment.fetwfe"
      ]
    },
    {
      "page": "betwfe",
      "title": "Bridge-penalized extended two-way fixed effects",
      "topics": [
        "betwfe"
      ]
    },
    {
      "page": "betwfe-class",
      "title": "Bridge-Penalized Extended Two-Way Fixed Effects Output Class",
      "topics": [
        "betwfe-class"
      ]
    },
    {
      "page": "betwfeWithSimulatedData",
      "title": "Run BETWFE on Simulated Data",
      "topics": [
        "betwfeWithSimulatedData"
      ]
    },
    {
      "page": "etwfe",
      "title": "Extended two-way fixed effects",
      "topics": [
        "etwfe"
      ]
    },
    {
      "page": "etwfe-class",
      "title": "Extended Two-Way Fixed Effects Output Class",
      "topics": [
        "etwfe-class"
      ]
    },
    {
      "page": "etwfeToFetwfeDf",
      "title": "Convert data prepared for 'etwfe::etwfe()' to the format required by 'fetwfe()' and 'fetwfe::etwfe()'",
      "topics": [
        "etwfeToFetwfeDf"
      ]
    },
    {
      "page": "etwfeWithSimulatedData",
      "title": "Run ETWFE on Simulated Data",
      "topics": [
        "etwfeWithSimulatedData"
      ]
    },
    {
      "page": "eventStudy",
      "title": "Compute pooled event-time treatment-effect estimates",
      "topics": [
        "eventStudy"
      ]
    },
    {
      "page": "fetwfe",
      "title": "Fused extended two-way fixed effects",
      "topics": [
        "fetwfe"
      ]
    },
    {
      "page": "FETWFE_coefs-class",
      "title": "FETWFE Coefficient-Vector Class",
      "topics": [
        "FETWFE_coefs-class"
      ]
    },
    {
      "page": "FETWFE_simulated-class",
      "title": "Simulated Panel-Data Class",
      "topics": [
        "FETWFE_simulated-class"
      ]
    },
    {
      "page": "FETWFE_tes-class",
      "title": "Compute True Treatment Effects Output Class",
      "topics": [
        "FETWFE_tes-class"
      ]
    },
    {
      "page": "fetwfe-class",
      "title": "Fused Extended Two-Way Fixed Effects Output Class",
      "topics": [
        "fetwfe-class"
      ]
    },
    {
      "page": "fetwfeWithSimulatedData",
      "title": "Run FETWFE on Simulated Data",
      "topics": [
        "fetwfeWithSimulatedData"
      ]
    },
    {
      "page": "genCoefs",
      "title": "Generate Coefficient Vector for Data Generation",
      "topics": [
        "genCoefs"
      ]
    },
    {
      "page": "genCoefsCore",
      "title": "Generate Coefficient Vector for Data Generation",
      "topics": [
        "genCoefsCore"
      ]
    },
    {
      "page": "getTes",
      "title": "Compute True Treatment Effects",
      "topics": [
        "getTes"
      ]
    },
    {
      "page": "glance.betwfe",
      "title": "Glance a 'betwfe' fitted object",
      "topics": [
        "glance.betwfe"
      ]
    },
    {
      "page": "glance.etwfe",
      "title": "Glance an 'etwfe' fitted object",
      "topics": [
        "glance.etwfe"
      ]
    },
    {
      "page": "glance.fetwfe",
      "title": "Glance an 'fetwfe' fitted object",
      "topics": [
        "glance.fetwfe"
      ]
    },
    {
      "page": "simulateData",
      "title": "Generate Random Panel Data for FETWFE Simulations",
      "topics": [
        "simulateData"
      ]
    },
    {
      "page": "simulateDataCore",
      "title": "Generate Random Panel Data for FETWFE Simulations",
      "topics": [
        "simulateDataCore"
      ]
    },
    {
      "page": "tidy.betwfe",
      "title": "Tidy a 'betwfe' fitted object",
      "topics": [
        "tidy.betwfe"
      ]
    },
    {
      "page": "tidy.etwfe",
      "title": "Tidy an 'etwfe' fitted object",
      "topics": [
        "tidy.etwfe"
      ]
    },
    {
      "page": "tidy.eventStudy",
      "title": "Tidy an 'eventStudy' object",
      "topics": [
        "tidy.eventStudy"
      ]
    },
    {
      "page": "tidy.fetwfe",
      "title": "Tidy an 'fetwfe' fitted object",
      "topics": [
        "tidy.fetwfe"
      ]
    },
    {
      "page": "tidy.FETWFE_tes",
      "title": "Tidy a 'FETWFE_tes' simulation truth object",
      "topics": [
        "tidy.FETWFE_tes"
      ]
    },
    {
      "page": "twfeCovs",
      "title": "Two-way fixed effects with covariates and separate treatment effects for each cohort",
      "topics": [
        "twfeCovs"
      ]
    },
    {
      "page": "twfeCovs-class",
      "title": "TWFE-With-Covariates Output Class",
      "topics": [
        "twfeCovs-class"
      ]
    },
    {
      "page": "twfeCovsWithSimulatedData",
      "title": "Run twfeCovs on Simulated Data",
      "topics": [
        "twfeCovsWithSimulatedData"
      ]
    }
  ],
  "_readme": "https://github.com/cran/fetwfe/raw/HEAD/README.md",
  "_rundeps": [
    "codetools",
    "foreach",
    "generics",
    "glmnet",
    "grpreg",
    "iterators",
    "lattice",
    "Matrix",
    "Rcpp",
    "RcppEigen",
    "shape",
    "survival"
  ],
  "_vignettes": [
    {
      "source": "etwfe_betwfe_vignette.Rmd",
      "filename": "etwfe_betwfe_vignette.html",
      "title": "Comparison Estimators: ETWFE and BETWFE",
      "author": "Gregory Faletto",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Setup: simulating panel data",
        "etwfe(): extended TWFE without penalty",
        "betwfe(): bridge-penalized ETWFE",
        "No-covariate setting",
        "Visualizing event-time effects",
        "When to use which",
        "References"
      ],
      "created": "2026-05-24 00:20:02",
      "modified": "2026-05-24 00:20:02",
      "commits": 1
    },
    {
      "source": "simulation_vignette.Rmd",
      "filename": "simulation_vignette.html",
      "title": "Simulation Vignette for FETWFE: From Coefficients to True Treatment Effects",
      "author": "Gregory Faletto",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Simulation Workflow Using Piping",
        "Step 1: Generate Simulation Coefficients",
        "Step 2: Simulate Panel Data",
        "Step 3: Run the FETWFE Estimator on Simulated Data",
        "Step 4: Extract True Treatment Effects",
        "Combining the Workflow in One Pipeline",
        "Conclusion"
      ],
      "created": "2025-05-15 05:10:02",
      "modified": "2026-05-24 00:20:02",
      "commits": 3
    },
    {
      "source": "vignette.Rmd",
      "filename": "vignette.html",
      "title": "fetwfe: A Package for Fused Extended Two-Way Fixed Effects",
      "author": "Gregory Faletto",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Background",
        "Package Usage",
        "Simulated Data Example",
        "A \"Real Data\" Example",
        "Testing the zero-effect null",
        "Tidy outputs with broom",
        "Conclusion",
        "References"
      ],
      "created": "2025-02-21 11:40:24",
      "modified": "2026-05-24 00:20:02",
      "commits": 4
    },
    {
      "source": "inference_vignette.Rmd",
      "filename": "inference_vignette.html",
      "title": "Standard errors in fetwfe: Assumption F1 and the experimental cluster-robust option",
      "author": "Gregory Faletto",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. What att_se and catt_ses are under Assumption F1",
        "2. When Assumption F1 may be restrictive in applied DiD",
        "2.1 Within-unit serial correlation beyond the random effect",
        "2.2 Heteroskedasticity across units",
        "2.3 Higher-level clustering",
        "3. Experimental: cluster-robust standard errors via se_type = \"cluster\"",
        "3.1 The formula",
        "3.2 Why we call this experimental",
        "3.3 Worked example",
        "References"
      ],
      "created": "2026-05-24 00:20:02",
      "modified": "2026-05-24 00:20:02",
      "commits": 1
    }
  ],
  "_score": 3.6020599913279625,
  "_indexed": false,
  "_nocasepkg": "fetwfe",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://gregfaletto.r-universe.dev/fetwfe",
  "_previous": "1.10.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.10.1",
      "date": "2026-11-20T13:25:47.000Z",
      "distro": "resolute",
      "commit": "eeb0d4bec509426c425c1f143ea0736beb687e7d",
      "fileid": "https://r2.ropensci.org/e868b12a5eccc41de1515b8e36c9ff408f54e28c523fc2fa22c65fdd132434b1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44743303054"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.10.1",
      "date": "2026-11-20T13:25:52.000Z",
      "distro": "resolute",
      "commit": "eeb0d4bec509426c425c1f143ea0736beb687e7d",
      "fileid": "https://r2.ropensci.org/6e1b37afbdfbabe5045e933750bc3e916ad9aa14fc66657a9ee5b7ff540ef71e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44743303054"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.10.1",
      "date": "2026-11-20T13:25:53.000Z",
      "commit": "eeb0d4bec509426c425c1f143ea0736beb687e7d",
      "fileid": "https://r2.ropensci.org/c6d787abed0d4ca7d87866df4370f19b7d46a7bda12fc0d67e6887379cddf0e1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44743303054"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.10.1",
      "date": "2026-11-20T13:25:19.000Z",
      "commit": "eeb0d4bec509426c425c1f143ea0736beb687e7d",
      "fileid": "https://r2.ropensci.org/a9d6c09cfcb4b331d3651ce953f6ae11fd0602ff811b16c4a4c74400d901280a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44743303054"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.10.1",
      "date": "2026-11-20T13:24:54.000Z",
      "commit": "eeb0d4bec509426c425c1f143ea0736beb687e7d",
      "fileid": "https://r2.ropensci.org/c701829475efd31262aa2aba286c4d2b73a027f2f1d8e61301d63b10e3070e65",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44743303054"
    }
  ]
}