{
  "_id": "6b0fdb0635d1c7861e97e5ea",
  "Package": "causalverse",
  "Type": "Package",
  "Date": "2026-11-11",
  "Title": "The All-in-One Causal Inference Toolkit",
  "Version": "1.1.0",
  "Authors@R": "person(\"Mike\", \"Nguyen\", , \"mikenguyen.contact@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-3432-8595\"))",
  "Maintainer": "Mike Nguyen <mikenguyen.contact@gmail.com>",
  "Description": "A comprehensive, one-stop-shop toolkit for causal\ninference in R, the 'tidyverse' of causal analysis. Covers the\nfull causal inference pipeline: randomized experiments (RCT,\npower analysis, attrition), quasi-experimental designs (DiD,\nstaggered adoption, synthetic DID, synthetic controls, RD, IV),\nheterogeneous treatment effects (causal forests, BLP, GATES,\nQini curves), mediation analysis, sensitivity analysis, panel\ndata diagnostics, and publication-ready reporting. Provides 80+\nutility functions, 14 in-depth vignettes, and seamless\nintegration with leading causal inference packages.",
  "License": "GPL-3 | file LICENSE",
  "URL": "https://mikenguyen13.github.io/causalverse/,\nhttps://github.com/mikenguyen13/causalverse",
  "BugReports": "https://github.com/mikenguyen13/causalverse/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "Remotes": [
    "synth-inference/synthdid@70c1ce3eac58e28c30b67435ca377bb48baa9b8a",
    "susanathey/MCPanel"
  ],
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "cmake make libicu-dev libssl-dev libx11-dev\nzlib1g-dev",
  "Repository": "https://mikenguyen13.r-universe.dev",
  "Date/Publication": "2026-12-02 07:08:52 UTC",
  "RemoteUrl": "https://github.com/mikenguyen13/causalverse",
  "RemoteRef": "HEAD",
  "RemoteSha": "6d5877de501924bffc2a32e0f8c410374fc24919",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-12-02 08:33:38 UTC",
    "User": "root"
  },
  "Author": "Mike Nguyen [aut, cre] (ORCID: <https://orcid.org/0000-0002-3432-8595>)",
  "_user": "mikenguyen13",
  "_type": "src",
  "_file": "causalverse_1.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/542f0aecb9c2f6071595fd504afcbfab90ea0af10974ee115d0d25c27ac6c0a0",
  "_filesize": 33515800,
  "_sha256": "542f0aecb9c2f6071595fd504afcbfab90ea0af10974ee115d0d25c27ac6c0a0",
  "_expires": "2027-03-12T08:46:59.000Z",
  "_created": "2026-12-02T08:33:38.000Z",
  "_published": "2026-12-02T08:47:02.615Z",
  "_upstream": "https://github.com/mikenguyen13/causalverse",
  "_status": "success",
  "_maintainer": {
    "name": "Mike Nguyen",
    "email": "mikenguyen.contact@gmail.com",
    "login": "mikenguyen13",
    "description": "",
    "uuid": 57576563,
    "orcid": "0000-0002-3432-8595"
  },
  "_jobs": [
    {
      "job": 143326527017,
      "time": 581,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15585109118"
    },
    {
      "job": 143326527081,
      "time": 730,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15585827874"
    },
    {
      "job": 143326527050,
      "time": 676,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "15585528880"
    },
    {
      "job": 143326527182,
      "time": 618,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15585568516"
    },
    {
      "job": 143306662214,
      "time": 2352,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15585391965"
    },
    {
      "job": 143326527054,
      "time": 349,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "15584923707"
    },
    {
      "job": 143326527134,
      "time": 524,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15584899243"
    },
    {
      "job": 143326526978,
      "time": 631,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "15586236504"
    },
    {
      "job": 143326527066,
      "time": 665,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15583949981"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mikenguyen13/actions/runs/46836608983",
  "_commit": {
    "id": "6d5877de501924bffc2a32e0f8c410374fc24919",
    "author": "Mike <57576563+mikenguyen13@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #20 from mikenguyen13/bot/journal-guidelines\n\nJournal guideline pages changed",
    "time": 1796195332
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.4.2",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "version": ">= 1.14.8",
      "role": "Imports"
    },
    {
      "package": "rio",
      "version": ">= 0.5.29",
      "role": "Imports"
    },
    {
      "package": "xtable",
      "version": ">= 1.8.4",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.1.1",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "version": ">= 1.3.0",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "scales",
      "version": ">= 1.2.1",
      "role": "Imports"
    },
    {
      "package": "systemfit",
      "version": ">= 1.1.30",
      "role": "Imports"
    },
    {
      "package": "Hotelling",
      "version": ">= 1.0.8",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.1.1",
      "role": "Imports"
    },
    {
      "package": "fixest",
      "version": ">= 0.11.1",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "PanelMatch",
      "version": ">= 2.0.1",
      "role": "Imports"
    },
    {
      "package": "fastDummies",
      "version": ">= 1.7.3",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "version": ">= 2.0.3",
      "role": "Imports"
    },
    {
      "package": "synthdid",
      "version": ">= 0.0.9",
      "role": "Imports"
    },
    {
      "package": "plm",
      "version": ">= 2.6.3",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "prepost",
      "role": "Suggests"
    },
    {
      "package": "parallel",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "gridExtra",
      "version": ">= 2.3",
      "role": "Suggests"
    },
    {
      "package": "MatchIt",
      "version": ">= 4.5.4",
      "role": "Suggests"
    },
    {
      "package": "doParallel",
      "version": ">= 1.0.17",
      "role": "Suggests"
    },
    {
      "package": "foreach",
      "version": ">= 1.5.2",
      "role": "Suggests"
    },
    {
      "package": "did",
      "version": ">= 2.1.2",
      "role": "Suggests"
    },
    {
      "package": "rdrobust",
      "role": "Suggests"
    },
    {
      "package": "rddensity",
      "role": "Suggests"
    },
    {
      "package": "rdpower",
      "role": "Suggests"
    },
    {
      "package": "rdlocrand",
      "role": "Suggests"
    },
    {
      "package": "rdmulti",
      "role": "Suggests"
    },
    {
      "package": "ivreg",
      "role": "Suggests"
    },
    {
      "package": "sensemakr",
      "role": "Suggests"
    },
    {
      "package": "estimatr",
      "role": "Suggests"
    },
    {
      "package": "did2s",
      "role": "Suggests"
    },
    {
      "package": "HonestDiD",
      "role": "Suggests"
    },
    {
      "package": "DRDID",
      "role": "Suggests"
    },
    {
      "package": "gsynth",
      "role": "Suggests"
    },
    {
      "package": "Synth",
      "role": "Suggests"
    },
    {
      "package": "randomizr",
      "role": "Suggests"
    },
    {
      "package": "DeclareDesign",
      "role": "Suggests"
    },
    {
      "package": "cobalt",
      "role": "Suggests"
    },
    {
      "package": "WeightIt",
      "role": "Suggests"
    },
    {
      "package": "EValue",
      "role": "Suggests"
    },
    {
      "package": "rbounds",
      "role": "Suggests"
    },
    {
      "package": "ri2",
      "role": "Suggests"
    },
    {
      "package": "bacondecomp",
      "role": "Suggests"
    },
    {
      "package": "staggered",
      "role": "Suggests"
    },
    {
      "package": "TwoWayFEWeights",
      "role": "Suggests"
    },
    {
      "package": "didimputation",
      "role": "Suggests"
    },
    {
      "package": "fect",
      "role": "Suggests"
    },
    {
      "package": "ivmodel",
      "role": "Suggests"
    },
    {
      "package": "hdm",
      "role": "Suggests"
    },
    {
      "package": "optmatch",
      "role": "Suggests"
    },
    {
      "package": "CBPS",
      "role": "Suggests"
    },
    {
      "package": "konfound",
      "role": "Suggests"
    },
    {
      "package": "grf",
      "role": "Suggests"
    },
    {
      "package": "Matching",
      "role": "Suggests"
    },
    {
      "package": "sensitivitymv",
      "role": "Suggests"
    },
    {
      "package": "pak",
      "role": "Suggests"
    },
    {
      "package": "remotes",
      "role": "Suggests"
    },
    {
      "package": "frenchdata",
      "role": "Suggests"
    },
    {
      "package": "policytree",
      "role": "Suggests"
    },
    {
      "package": "DoubleML",
      "role": "Suggests"
    },
    {
      "package": "mlr3",
      "role": "Suggests"
    },
    {
      "package": "mlr3learners",
      "role": "Suggests"
    },
    {
      "package": "ranger",
      "role": "Suggests"
    },
    {
      "package": "bartCause",
      "role": "Suggests"
    },
    {
      "package": "rdhte",
      "role": "Suggests"
    },
    {
      "package": "DIDmultiplegt",
      "role": "Suggests"
    },
    {
      "package": "DIDmultiplegtDYN",
      "role": "Suggests"
    },
    {
      "package": "fastdid",
      "role": "Suggests"
    },
    {
      "package": "panelView",
      "role": "Suggests"
    },
    {
      "package": "SCtools",
      "role": "Suggests"
    },
    {
      "package": "tidysynth",
      "role": "Suggests"
    },
    {
      "package": "pensynth",
      "role": "Suggests"
    },
    {
      "package": "microsynth",
      "role": "Suggests"
    },
    {
      "package": "PSweight",
      "role": "Suggests"
    },
    {
      "package": "twang",
      "role": "Suggests"
    },
    {
      "package": "MatchThem",
      "role": "Suggests"
    },
    {
      "package": "CausalImpact",
      "role": "Suggests"
    },
    {
      "package": "dagitty",
      "role": "Suggests"
    },
    {
      "package": "survey",
      "role": "Suggests"
    },
    {
      "package": "ivDiag",
      "role": "Suggests"
    },
    {
      "package": "REndo",
      "role": "Suggests"
    },
    {
      "package": "MendelianRandomization",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "role": "Suggests"
    },
    {
      "package": "sandwich",
      "role": "Suggests"
    },
    {
      "package": "lmtest",
      "role": "Suggests"
    },
    {
      "package": "mediation",
      "role": "Suggests"
    },
    {
      "package": "lavaan",
      "role": "Suggests"
    },
    {
      "package": "modelsummary",
      "role": "Suggests"
    },
    {
      "package": "flextable",
      "role": "Suggests"
    },
    {
      "package": "officer",
      "role": "Suggests"
    },
    {
      "package": "tseries",
      "role": "Suggests"
    },
    {
      "package": "DiagrammeR",
      "role": "Suggests"
    },
    {
      "package": "marginaleffects",
      "role": "Suggests"
    },
    {
      "package": "ggdag",
      "role": "Suggests"
    },
    {
      "package": "gt",
      "role": "Suggests"
    },
    {
      "package": "broom",
      "role": "Suggests"
    },
    {
      "package": "mgcv",
      "role": "Suggests"
    },
    {
      "package": "blavaan",
      "role": "Suggests"
    },
    {
      "package": "car",
      "role": "Suggests"
    },
    {
      "package": "quantreg",
      "role": "Suggests"
    },
    {
      "package": "gbm",
      "role": "Suggests"
    },
    {
      "package": "glmnet",
      "role": "Suggests"
    },
    {
      "package": "mice",
      "role": "Suggests"
    },
    {
      "package": "rpart",
      "role": "Suggests"
    },
    {
      "package": "xgboost",
      "role": "Suggests"
    },
    {
      "package": "MCPanel",
      "role": "Suggests"
    }
  ],
  "_owner": "mikenguyen13",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-12",
      "n": 23
    },
    {
      "week": "2026-13",
      "n": 2
    },
    {
      "week": "2026-32",
      "n": 1
    },
    {
      "week": "2026-33",
      "n": 1
    },
    {
      "week": "2026-37",
      "n": 1
    },
    {
      "week": "2026-42",
      "n": 2
    },
    {
      "week": "2026-47",
      "n": 1
    },
    {
      "week": "2026-48",
      "n": 15
    },
    {
      "week": "2026-49",
      "n": 2
    }
  ],
  "_tags": [],
  "_topics": [
    "causal-analysis",
    "causal-inference",
    "causal-models",
    "causality",
    "causality-analysis"
  ],
  "_stars": 6,
  "_contributors": [
    {
      "user": "mikenguyen13",
      "count": 95,
      "uuid": 57576563
    }
  ],
  "_userbio": {
    "uuid": 57576563,
    "type": "user",
    "name": "Mike",
    "followers": 53
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/causalverse"
  },
  "_devurl": "https://github.com/mikenguyen13/causalverse",
  "_pkgdown": "https://mikenguyen13.github.io/causalverse/",
  "_searchresults": 57,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/causalverse.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_authors": [
    {
      "name": "Mike Nguyen",
      "email": "mikenguyen.contact@gmail.com",
      "orcid": "0000-0002-3432-8595",
      "role": [
        "aut",
        "cre"
      ]
    }
  ],
  "_exports": [
    "ama_export_fig",
    "ama_export_tab",
    "ama_labs",
    "ama_scale_color",
    "ama_scale_fill",
    "ama_theme",
    "attrition_analysis",
    "bacon_decomp_plot",
    "balance_assessment",
    "balance_plot",
    "balance_scatter_custom",
    "balance_table",
    "blp_analysis",
    "causal_forest_summary",
    "causal_summary",
    "causal_table",
    "check_backends",
    "coef_plot",
    "compare_estimators",
    "confounding_strength",
    "covariate_summary",
    "dag_adjustment_sets",
    "dag_plot",
    "dag_test_implications",
    "did_event_study",
    "did_power_analysis",
    "dose_response",
    "dose_response_curve",
    "dr_ate",
    "effect_size_convert",
    "equivalence_shift",
    "event_study_finance",
    "export_fig",
    "export_tab",
    "get_balanced_panel",
    "heterogeneity_forest_plot",
    "heterogeneity_plot",
    "install_backends",
    "iv_diagnostic_summary",
    "iv_diagnostics",
    "iv_sensitivity",
    "journal_check",
    "journal_list",
    "journal_palette",
    "journal_sources",
    "journal_style",
    "journal_table",
    "lee_bounds",
    "love_plot",
    "mde_calc",
    "med_ind",
    "mediation_analysis",
    "multiverse_analysis",
    "nice_tab",
    "overlap_weights",
    "panel_diagnostics",
    "panel_estimate",
    "parallel_trends_plot",
    "placebo_test",
    "plot_coef_comparison",
    "plot_coef_par_trends",
    "plot_covariate_balance_pretrend",
    "plot_density_by_treatment",
    "plot_event_coefs",
    "plot_panel_estimate",
    "plot_PanelEstimate",
    "plot_par_trends",
    "plot_pscore_overlap",
    "plot_rd_aa_share",
    "plot_treat_time",
    "plot_trends_across_group",
    "power_sim",
    "pretrend_sensitivity",
    "process_panel_estimate",
    "propensity_diagnostics",
    "qini_curve",
    "rd_assumption_tests",
    "rd_bandwidth_sensitivity",
    "rd_binscatter",
    "rd_covariate_balance",
    "rd_placebo_cutoffs",
    "rd_plot",
    "role_bounds",
    "role_simulation",
    "role_test",
    "sc_gap_plot",
    "sc_inference_plot",
    "scale_color_journal",
    "scale_colour_journal",
    "scale_fill_journal",
    "sensitivity_plot",
    "shift_test",
    "simulate_role_data",
    "spec_curve",
    "stack_data",
    "stacked_did",
    "staggered_summary",
    "synthdid_est",
    "synthdid_est_ate",
    "synthdid_est_per",
    "synthdid_plot_ate",
    "synthdid_se_jacknife",
    "synthdid_se_placebo",
    "test_pretrends",
    "theme_journal",
    "tidy_causal",
    "treatment_calendar"
  ],
  "_help": [
    {
      "page": "ama_export_fig",
      "title": "Function to export a figure with custom settings",
      "topics": [
        "ama_export_fig"
      ]
    },
    {
      "page": "ama_export_tab",
      "title": "Function to export a table with AMA style",
      "topics": [
        "ama_export_tab"
      ]
    },
    {
      "page": "ama_labs",
      "title": "Custom Label Formatting for ggplot2: American Marketing Association Style",
      "topics": [
        "ama_labs"
      ]
    },
    {
      "page": "ama_scale_color",
      "title": "Custom Color Scale for ggplot2: American Marketing Association Style",
      "topics": [
        "ama_scale_color"
      ]
    },
    {
      "page": "ama_scale_fill",
      "title": "Custom Fill Scale for ggplot2: American Marketing Association Style",
      "topics": [
        "ama_scale_fill"
      ]
    },
    {
      "page": "ama_theme",
      "title": "Custom Theme for ggplot2: American Marketing Association Style",
      "topics": [
        "ama_theme"
      ]
    },
    {
      "page": "attrition_analysis",
      "title": "Attrition Analysis for Experimental & Panel Data",
      "topics": [
        "attrition_analysis"
      ]
    },
    {
      "page": "bacon_decomp_plot",
      "title": "Plot Bacon Decomposition of TWFE Estimates",
      "topics": [
        "bacon_decomp_plot"
      ]
    },
    {
      "page": "balance_assessment",
      "title": "Assess balance between treated and control groups",
      "topics": [
        "balance_assessment"
      ]
    },
    {
      "page": "balance_plot",
      "title": "Comprehensive Balance Plot Suite",
      "topics": [
        "balance_plot"
      ]
    },
    {
      "page": "balance_scatter_custom",
      "title": "Custom function to visualize the balance between treatment and control groups",
      "topics": [
        "balance_scatter_custom"
      ]
    },
    {
      "page": "balance_table",
      "title": "Publication-Ready Covariate Balance Table",
      "topics": [
        "balance_table"
      ]
    },
    {
      "page": "blp_analysis",
      "title": "Best Linear Predictor (BLP) Analysis for Conditional Average Treatment Effects",
      "topics": [
        "blp_analysis"
      ]
    },
    {
      "page": "causal_forest_summary",
      "title": "Comprehensive Summary of Causal Forest Results",
      "topics": [
        "causal_forest_summary"
      ]
    },
    {
      "page": "causal_summary",
      "title": "Unified Causal Model Summary",
      "topics": [
        "causal_summary"
      ]
    },
    {
      "page": "causal_table",
      "title": "Publication-Ready Causal Inference Results Table",
      "topics": [
        "causal_table"
      ]
    },
    {
      "page": "check_backends",
      "title": "List Available Backend Packages and Their Status",
      "topics": [
        "check_backends"
      ]
    },
    {
      "page": "coef_plot",
      "title": "Universal Coefficient Plot",
      "topics": [
        "coef_plot"
      ]
    },
    {
      "page": "compare_estimators",
      "title": "Compare Causal Estimators in a Formatted Table",
      "topics": [
        "compare_estimators"
      ]
    },
    {
      "page": "confounding_strength",
      "title": "Sensitivity Analysis for Omitted Variable Bias (E-value & RV)",
      "topics": [
        "confounding_strength"
      ]
    },
    {
      "page": "covariate_summary",
      "title": "Comprehensive Covariate Summary Table (Table 1)",
      "topics": [
        "covariate_summary"
      ]
    },
    {
      "page": "dag_adjustment_sets",
      "title": "List Adjustment Sets for a DAG",
      "topics": [
        "dag_adjustment_sets"
      ]
    },
    {
      "page": "dag_plot",
      "title": "Quick Causal DAG Visualization",
      "topics": [
        "dag_plot"
      ]
    },
    {
      "page": "dag_test_implications",
      "title": "Test Conditional Independence Implied by a DAG",
      "topics": [
        "dag_test_implications"
      ]
    },
    {
      "page": "did_event_study",
      "title": "Enhanced Event Study Plot for Difference-in-Differences",
      "topics": [
        "did_event_study"
      ]
    },
    {
      "page": "did_power_analysis",
      "title": "Power Analysis for Difference-in-Differences Designs",
      "topics": [
        "did_power_analysis"
      ]
    },
    {
      "page": "dose_response",
      "title": "Dose-Response Estimation for Continuous Treatments",
      "topics": [
        "dose_response"
      ]
    },
    {
      "page": "dose_response_curve",
      "title": "Dose-Response Curve for Continuous Treatment",
      "topics": [
        "dose_response_curve"
      ]
    },
    {
      "page": "dr_ate",
      "title": "Doubly-Robust Augmented IPW Estimator for the ATE and ATT",
      "topics": [
        "dr_ate"
      ]
    },
    {
      "page": "effect_size_convert",
      "title": "Convert Between Causal Effect Size Metrics",
      "topics": [
        "effect_size_convert"
      ]
    },
    {
      "page": "equivalence_shift",
      "title": "Equivalence Test That Treatment Did Not Shift a Variable",
      "topics": [
        "equivalence_shift"
      ]
    },
    {
      "page": "event_study_finance",
      "title": "Compute Abnormal Returns and CARs for Finance Event Studies",
      "topics": [
        "event_study_finance"
      ]
    },
    {
      "page": "export_fig",
      "title": "Export a Figure to a Journal's Specifications",
      "topics": [
        "export_fig"
      ]
    },
    {
      "page": "export_tab",
      "title": "Export a Table to a Journal's Specifications",
      "topics": [
        "export_tab"
      ]
    },
    {
      "page": "get_balanced_panel",
      "title": "Extract a Balanced Panel",
      "topics": [
        "get_balanced_panel"
      ]
    },
    {
      "page": "heterogeneity_forest_plot",
      "title": "Heterogeneity Forest Plot",
      "topics": [
        "heterogeneity_forest_plot"
      ]
    },
    {
      "page": "heterogeneity_plot",
      "title": "Treatment Effect Heterogeneity Visualization",
      "topics": [
        "heterogeneity_plot"
      ]
    },
    {
      "page": "install_backends",
      "title": "Install Backend Packages for Causal Inference Methods",
      "topics": [
        "install_backends"
      ]
    },
    {
      "page": "iv_diagnostic_summary",
      "title": "Instrumental Variable Diagnostic Summary",
      "topics": [
        "iv_diagnostic_summary"
      ]
    },
    {
      "page": "iv_diagnostics",
      "title": "Instrumental Variables Diagnostics",
      "topics": [
        "iv_diagnostics"
      ]
    },
    {
      "page": "iv_sensitivity",
      "title": "Sensitivity Analysis for Instrumental Variables: Exclusion Restriction",
      "topics": [
        "iv_sensitivity"
      ]
    },
    {
      "page": "journal_check",
      "title": "Check a Figure or Table Against a Journal's Formatting Rules",
      "topics": [
        "journal_check"
      ]
    },
    {
      "page": "journal_list",
      "title": "List the Journals with Known Formatting Styles",
      "topics": [
        "journal_list"
      ]
    },
    {
      "page": "journal_palette",
      "title": "Grayscale-Safe Colour Palette for a Journal",
      "topics": [
        "journal_palette"
      ]
    },
    {
      "page": "journal_sources",
      "title": "Official Guideline Sources Behind Each Journal Style",
      "topics": [
        "journal_sources"
      ]
    },
    {
      "page": "journal_style",
      "title": "Journal Formatting Styles for Tables and Figures",
      "topics": [
        "journal_style"
      ]
    },
    {
      "page": "journal_table",
      "title": "Build a Regression or Summary Table in a Journal's Style",
      "topics": [
        "journal_table"
      ]
    },
    {
      "page": "lee_bounds",
      "title": "Summarize Lee Bounds for Always-Takers",
      "topics": [
        "lee_bounds"
      ]
    },
    {
      "page": "love_plot",
      "title": "Love Plot for Covariate Balance Visualization",
      "topics": [
        "love_plot"
      ]
    },
    {
      "page": "mde_calc",
      "title": "Minimum Detectable Effect (MDE) Calculator",
      "topics": [
        "mde_calc"
      ]
    },
    {
      "page": "med_ind",
      "title": "Estimate Mediation Indirect Effects",
      "topics": [
        "med_ind"
      ]
    },
    {
      "page": "mediation_analysis",
      "title": "Causal Mediation Analysis with ACME and ADE Estimation",
      "topics": [
        "mediation_analysis"
      ]
    },
    {
      "page": "multiverse_analysis",
      "title": "Multiverse / Specification Curve Analysis",
      "topics": [
        "multiverse_analysis"
      ]
    },
    {
      "page": "nice_tab",
      "title": "Nice Tabulation Function",
      "topics": [
        "nice_tab"
      ]
    },
    {
      "page": "overlap_weights",
      "title": "Overlap Weights and Trimming for Propensity Score Analysis",
      "topics": [
        "overlap_weights"
      ]
    },
    {
      "page": "panel_diagnostics",
      "title": "Panel Data Diagnostic Tests",
      "topics": [
        "panel_diagnostics"
      ]
    },
    {
      "page": "panel_estimate",
      "title": "Panel Estimate Function",
      "topics": [
        "panel_estimate"
      ]
    },
    {
      "page": "parallel_trends_plot",
      "title": "Parallel Trends Plot for DiD",
      "topics": [
        "parallel_trends_plot"
      ]
    },
    {
      "page": "placebo_test",
      "title": "Randomization Inference and Placebo Tests for Treatment Effects",
      "topics": [
        "placebo_test"
      ]
    },
    {
      "page": "plot_coef_comparison",
      "title": "Compare Treatment Effect Estimates Across Models",
      "topics": [
        "plot_coef_comparison"
      ]
    },
    {
      "page": "plot_coef_par_trends",
      "title": "Plot Coefficients of Parallel Trends",
      "topics": [
        "plot_coef_par_trends"
      ]
    },
    {
      "page": "plot_covariate_balance_pretrend",
      "title": "Plot Covariate Balance Over Pre-Treatment Period",
      "topics": [
        "plot_covariate_balance_pretrend"
      ]
    },
    {
      "page": "plot_density_by_treatment",
      "title": "Plot Density by Treatment",
      "topics": [
        "plot_density_by_treatment"
      ]
    },
    {
      "page": "plot_event_coefs",
      "title": "Plot Event Study Coefficients from Multiple Estimators",
      "topics": [
        "plot_event_coefs"
      ]
    },
    {
      "page": "plot_panel_estimate",
      "title": "Plot Estimated Effects of Treatment Over Time",
      "topics": [
        "plot_PanelEstimate",
        "plot_panel_estimate"
      ]
    },
    {
      "page": "plot_par_trends",
      "title": "Plot Parallel Trends",
      "topics": [
        "plot_par_trends"
      ]
    },
    {
      "page": "plot_pscore_overlap",
      "title": "Propensity Score Overlap Diagnostic Plot",
      "topics": [
        "plot_pscore_overlap"
      ]
    },
    {
      "page": "plot_rd_aa_share",
      "title": "Plot RD Always-assigned Share",
      "topics": [
        "plot_rd_aa_share"
      ]
    },
    {
      "page": "plot_treat_time",
      "title": "Plot number of treated units over time or return a dataframe.",
      "topics": [
        "plot_treat_time"
      ]
    },
    {
      "page": "plot_trends_across_group",
      "title": "Custom Faceted Line Plot with Optional Standard Error",
      "topics": [
        "plot_trends_across_group"
      ]
    },
    {
      "page": "power_sim",
      "title": "Monte Carlo Power Simulation for Causal Designs",
      "topics": [
        "power_sim"
      ]
    },
    {
      "page": "pretrend_sensitivity",
      "title": "Pre-trend Sensitivity Analysis (HonestDiD)",
      "topics": [
        "pretrend_sensitivity"
      ]
    },
    {
      "page": "process_panel_estimate",
      "title": "Process Panel Estimate",
      "topics": [
        "process_panel_estimate"
      ]
    },
    {
      "page": "propensity_diagnostics",
      "title": "Propensity Score Diagnostics Panel",
      "topics": [
        "propensity_diagnostics"
      ]
    },
    {
      "page": "qini_curve",
      "title": "Qini Curve and AUUC for Uplift / Policy Evaluation",
      "topics": [
        "qini_curve"
      ]
    },
    {
      "page": "rd_assumption_tests",
      "title": "Comprehensive RD Assumption Tests",
      "topics": [
        "rd_assumption_tests"
      ]
    },
    {
      "page": "rd_bandwidth_sensitivity",
      "title": "RD Bandwidth Sensitivity Analysis",
      "topics": [
        "rd_bandwidth_sensitivity"
      ]
    },
    {
      "page": "rd_binscatter",
      "title": "Binned Scatter Plot for RD Analysis",
      "topics": [
        "rd_binscatter"
      ]
    },
    {
      "page": "rd_covariate_balance",
      "title": "RD Covariate Balance Test",
      "topics": [
        "rd_covariate_balance"
      ]
    },
    {
      "page": "rd_placebo_cutoffs",
      "title": "RD Placebo Cutoff Test",
      "topics": [
        "rd_placebo_cutoffs"
      ]
    },
    {
      "page": "rd_plot",
      "title": "Publication-Ready Regression Discontinuity Plot",
      "topics": [
        "rd_plot"
      ]
    },
    {
      "page": "role_bounds",
      "title": "Bounds on a Treatment-by-Moderator Interaction Under Priming or Post-Treatment Bias",
      "topics": [
        "role_bounds"
      ]
    },
    {
      "page": "role_simulation",
      "title": "Monte Carlo Comparison of Rules for Classifying a Third Variable",
      "topics": [
        "role_simulation"
      ]
    },
    {
      "page": "role_test",
      "title": "Is a Third Variable a Moderator, a Mediator, Both, or Neither?",
      "topics": [
        "role_test"
      ]
    },
    {
      "page": "sc_gap_plot",
      "title": "Gap Plot for Synthetic Control Analysis",
      "topics": [
        "sc_gap_plot"
      ]
    },
    {
      "page": "sc_inference_plot",
      "title": "Synthetic Control Gaps and Inference Plot",
      "topics": [
        "sc_inference_plot"
      ]
    },
    {
      "page": "scale_colour_journal",
      "title": "Colour and Fill Scales Following a Journal's Figure Rules",
      "topics": [
        "scale_color_journal",
        "scale_colour_journal",
        "scale_fill_journal"
      ]
    },
    {
      "page": "sensitivity_plot",
      "title": "Plot Treatment Effect Sensitivity to Unobserved Confounding",
      "topics": [
        "sensitivity_plot"
      ]
    },
    {
      "page": "shift_test",
      "title": "Randomization Test That Treatment Left a Variable Unchanged",
      "topics": [
        "shift_test"
      ]
    },
    {
      "page": "simulate_role_data",
      "title": "Simulate Experiments With a Known Third-Variable Role",
      "topics": [
        "simulate_role_data"
      ]
    },
    {
      "page": "spec_curve",
      "title": "Specification Curve Analysis",
      "topics": [
        "spec_curve"
      ]
    },
    {
      "page": "stack_data",
      "title": "Stacked Data for Staggered DiD Analysis",
      "topics": [
        "stack_data"
      ]
    },
    {
      "page": "stacked_did",
      "title": "Stacked Difference-in-Differences",
      "topics": [
        "stacked_did"
      ]
    },
    {
      "page": "staggered_summary",
      "title": "Summarize Staggered Adoption Panel Designs",
      "topics": [
        "staggered_summary"
      ]
    },
    {
      "page": "synthdid_est",
      "title": "Synthetic DID Estimation Using synthdid Package",
      "topics": [
        "synthdid_est"
      ]
    },
    {
      "page": "synthdid_est_ate",
      "title": "Estimate the SynthDiD ATEs and Standard Errors",
      "topics": [
        "synthdid_est_ate"
      ]
    },
    {
      "page": "synthdid_est_per",
      "title": "Estimate Treatment Effects for Each Period",
      "topics": [
        "synthdid_est_per"
      ]
    },
    {
      "page": "synthdid_plot_ate",
      "title": "Create ATE Plot Using ggplot2",
      "topics": [
        "synthdid_plot_ate"
      ]
    },
    {
      "page": "synthdid_se_jacknife",
      "title": "Calculate Jackknife Standard Errors for Synthetic DID",
      "topics": [
        "synthdid_se_jacknife"
      ]
    },
    {
      "page": "synthdid_se_placebo",
      "title": "Calculate Placebo Standard Errors for Synthetic DID",
      "topics": [
        "synthdid_se_placebo"
      ]
    },
    {
      "page": "test_pretrends",
      "title": "Unified Pre-Trends Testing for Event Study Models",
      "topics": [
        "test_pretrends"
      ]
    },
    {
      "page": "theme_journal",
      "title": "ggplot2 Theme for a Journal's Figure Rules",
      "topics": [
        "theme_journal"
      ]
    },
    {
      "page": "tidy_causal",
      "title": "Tidy Output from Causal Inference Model Objects",
      "topics": [
        "tidy_causal"
      ]
    },
    {
      "page": "treatment_calendar",
      "title": "Treatment Calendar Heatmap for Staggered Adoption Designs",
      "topics": [
        "treatment_calendar"
      ]
    }
  ],
  "_pkglogo": "https://github.com/mikenguyen13/causalverse/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/mikenguyen13/causalverse/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "arg",
    "backports",
    "bdsmatrix",
    "bit",
    "bit64",
    "boot",
    "broom",
    "car",
    "carData",
    "CBPS",
    "cellranger",
    "cli",
    "clipr",
    "codetools",
    "collapse",
    "colorspace",
    "corpcor",
    "cowplot",
    "cpp11",
    "crayon",
    "curl",
    "data.table",
    "Deriv",
    "digest",
    "doBy",
    "doParallel",
    "dplyr",
    "dreamerr",
    "farver",
    "fastDummies",
    "fixest",
    "forcats",
    "foreach",
    "forecast",
    "foreign",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "glmnet",
    "glue",
    "gtable",
    "haven",
    "hms",
    "Hotelling",
    "isoband",
    "iterators",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "MatchIt",
    "Matrix",
    "MatrixModels",
    "maxLik",
    "mgcv",
    "minqa",
    "miscTools",
    "modelr",
    "mvtnorm",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "PanelMatch",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "plm",
    "prettyunits",
    "progress",
    "purrr",
    "quantreg",
    "R.methodsS3",
    "R.oo",
    "R.utils",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RcppProgress",
    "Rdpack",
    "readr",
    "readxl",
    "reformulas",
    "rematch",
    "rio",
    "rlang",
    "S7",
    "sandwich",
    "scales",
    "shape",
    "SparseM",
    "stringi",
    "stringmagic",
    "stringr",
    "survival",
    "synthdid",
    "systemfit",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "tzdb",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr",
    "writexl",
    "xtable",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "a_introduction.Rmd",
      "filename": "a_introduction.html",
      "title": "Introduction to CausalVerse",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction to the causalverse Package",
        "Core Packages (Auto-Attached)",
        "Vignettes Overview",
        "Reporting",
        "Figures",
        "Export Figures",
        "Tables",
        "Export Tables",
        "Model Free Evidence",
        "Why Visualize Model-Free Evidence?",
        "Using plot_trends_across_group for Model-Free Evidence",
        "New Utility Functions",
        "Robustness & Diagnostics",
        "Regression Discontinuity",
        "Instrumental Variables",
        "Matching & Propensity Scores",
        "Visualization",
        "Package Management",
        "Other Functions",
        "Package Overview: Functions by Method Category",
        "Quick-Start: Three-Line Examples",
        "Decision Guide: Which Method to Use?",
        "New Utility Functions Showcase",
        "tidy_causal(): Unified Model Output",
        "causal_table(): Publication-Ready Comparison Table",
        "effect_size_convert(): Translating Effect Sizes",
        "compare_estimators(): Head-to-Head Method Comparison",
        "balance_table(): Covariate Balance Assessment",
        "Covariate Summary: Publication-Ready Table 1",
        "Power Analysis",
        "Minimum Detectable Effect with mde_calc()",
        "DiD Power Analysis with did_power_analysis()",
        "Power Curves: Comparing Designs",
        "Treatment Calendar and Staggered Adoption Summary",
        "Treatment Calendar",
        "Staggered Summary",
        "Effect Size Reporting for Publications",
        "Converting a Regression Coefficient",
        "Publication Table Workflow",
        "Putting It All Together: A Complete Workflow"
      ],
      "created": "2024-01-12 20:40:16",
      "modified": "2026-08-12 19:22:27",
      "commits": 6
    },
    {
      "source": "d_rct.Rmd",
      "filename": "d_rct.html",
      "title": "Randomized Control Trials ",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Introduction",
        "1.1 Randomized Control Trials as the Gold Standard",
        "1.2 The Potential Outcomes Framework (Rubin Causal Model)",
        "1.3 Estimands: ATE, ATT, ATU",
        "1.4 SUTVA: Stable Unit Treatment Value Assumption",
        "1.5 Randomization as an Identification Strategy",
        "1.6 Finite-Sample vs. Super-Population Inference",
        "2. Simulated RCT Data",
        "3. Balance Checking",
        "3.1 Summary Statistics by Group",
        "3.2 Standardized Mean Differences",
        "3.3 Visualizing Standardized Mean Differences",
        "3.4 Variable-by-Variable t-Tests",
        "3.5 Formal Joint Balance Tests with balance_assessment()",
        "3.6 Visual Balance Check with plot_density_by_treatment()",
        "4. Treatment Effect Estimation",
        "4.1 Simple Difference in Means (t-test)",
        "4.2 OLS Regression with fixest::feols()",
        "4.3 Covariate-Adjusted Estimation",
        "4.4 The Lin (2013) Estimator",
        "4.5 Fixed Effects for Stratified (Block) Experiments",
        "5. Robust Standard Errors with estimatr",
        "5.1 HC2 Standard Errors with lm_robust()",
        "5.2 Difference in Means with difference_in_means()",
        "5.3 The Lin Estimator via lm_lin()",
        "6. Randomization Inference with ri2",
        "6.1 Motivation",
        "6.2 Randomization Inference with ri2",
        "6.3 Randomization Inference for Blocked Designs",
        "7. Experimental Design with DeclareDesign",
        "7.1 Declaring a Design",
        "7.2 Diagnosing the Design",
        "7.3 Redesigning for Power",
        "8. Randomization with randomizr",
        "8.1 Complete Random Assignment",
        "8.2 Block (Stratified) Random Assignment",
        "8.3 Cluster Random Assignment",
        "9. Heterogeneous Treatment Effects",
        "9.1 Why Heterogeneity Matters",
        "9.2 Interaction Models",
        "9.3 Subgroup Analysis",
        "9.4 Heterogeneity by Education Level",
        "9.5 Causal Forests for Data-Driven Heterogeneity (grf)",
        "10. Multiple Testing Corrections",
        "10.1 The Multiple Testing Problem",
        "10.2 Simulating Multiple Outcomes",
        "10.3 Applying Corrections",
        "10.4 Comparison of Methods",
        "11. Power Analysis",
        "11.1 Analytical Power Calculation",
        "11.2 Power for Different Effect Sizes",
        "11.3 Power Curves",
        "11.4 Power with Multiple Effect Sizes",
        "11.5 Impact of Covariate Adjustment on Power",
        "12. Cluster-Randomized Trials",
        "12.1 When Clusters Matter",
        "12.2 Intra-Class Correlation Coefficient (ICC)",
        "12.3 Cluster-Robust Standard Errors",
        "12.4 Power for Cluster-Randomized Trials",
        "13. Sensitivity Analysis with sensemakr",
        "13.1 Motivation",
        "13.2 Sensitivity Analysis",
        "14. Causal Forests with grf",
        "14.1 Simulating Data with Heterogeneous Effects",
        "14.2 Fitting the Causal Forest",
        "14.3 Variable Importance",
        "14.4 CATE Estimation and Targeting",
        "14.5 Best Linear Projection and Calibration",
        "14.6 Prioritization Analysis",
        "15. Double/Debiased Machine Learning with DoubleML",
        "15.1 Partially Linear Regression Model (PLR)",
        "15.2 Interactive Regression Model (IRM)",
        "15.3 Comparison of DML Approaches",
        "16. BART-based Causal Inference with bartCause",
        "16.1 Estimating ATE and ATT",
        "16.2 ATT Estimation",
        "16.3 Posterior Distribution of Treatment Effects",
        "17. Optimal Treatment Assignment with policytree",
        "17.1 Computing Doubly Robust Scores",
        "17.2 Learning an Optimal Policy Tree",
        "17.3 Evaluating the Policy",
        "18. Adaptive Experiments and Multi-Armed Bandits",
        "18.1 Thompson Sampling with Valid Inference",
        "18.2 Key Concepts",
        "19. Covariate-Adaptive Randomization",
        "19.1 Block (Stratified) Randomization",
        "19.2 Cluster Randomization",
        "19.3 Block-and-Cluster Randomization",
        "19.4 Rerandomization",
        "20. Practical Guidelines and Checklist",
        "20.1 Pre-Registration",
        "20.2 The CONSORT Framework",
        "20.3 Analysis Checklist",
        "20.4 Common Pitfalls",
        "21. Summary",
        "22. Adaptive Experimental Design",
        "22.1 Response-Adaptive Randomization",
        "22.2 Sequential Testing with Alpha-Spending Functions",
        "22.3 Bayesian Adaptive Trial Design",
        "23. Comprehensive Visualization Suite for RCTs",
        "23.1 CONSORT Flow Diagram",
        "23.2 Treatment Effect by Subgroup Forest Plot",
        "23.3 Dose-Response Curve (Continuous Treatment)",
        "23.4 Compliance Diagram (Assignment vs. Receipt)",
        "23.5 Power Curve: Power vs. Sample Size",
        "24. Regression Adjustment and ANCOVA",
        "24.1 Why ANCOVA Increases Power",
        "24.2 Lin (2013) Interaction Estimator",
        "24.3 Simulation: Naive vs. ANCOVA vs. Lin Estimator",
        "24.4 ANCOVA Power Gain Formula",
        "25. Intention-to-Treat, Per-Protocol, and LATE",
        "25.1 Data Generating Process with Non-Compliance",
        "25.2 Intent-to-Treat (ITT) Estimate",
        "25.3 Per-Protocol (PP) Estimate",
        "25.4 Local Average Treatment Effect (LATE) via Wald Estimator and 2SLS",
        "25.5 IV Approach with Covariates (2SLS)",
        "References",
        "SUTVA Violations and Interference",
        "The Stable Unit Treatment Value Assumption",
        "Network Interference and Exposure Mapping",
        "Simulating Spillover Effects in a Network",
        "Bipartite Experiments and Two-Sided Platforms",
        "Cluster-Level SUTVA: Conservative but Robust",
        "Manski (1993) Bounds Under Interference",
        "Adaptive Experiments: Thompson Sampling and Bayesian Updating",
        "Why Adapt? The Exploration-Exploitation Trade-off",
        "Thompson Sampling for Bernoulli Arms",
        "Inference After Adaptive Experiments",
        "Rerandomization and Covariate-Adaptive Randomization",
        "The Problem with Pure Randomization",
        "Mahalanobis Rerandomization (Morgan and Rubin 2012)",
        "Stratified Block Randomization",
        "Pairwise Matching Before Randomization",
        "Comparing Designs: CRD vs. Rerandomized vs. Stratified",
        "Additional References (SUTVA, Adaptive, Rerandomization)"
      ],
      "created": "2026-03-18 18:59:58",
      "modified": "2026-11-27 00:12:07",
      "commits": 7
    },
    {
      "source": "k_hte.Rmd",
      "filename": "k_hte.html",
      "title": "Heterogeneous Treatment Effects & Causal ML ",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Introduction",
        "1.1 Why Heterogeneous Treatment Effects Matter",
        "1.2 Key Estimands: CATE, ATE, ATT",
        "1.3 Identification Assumptions",
        "1.4 Overview of Methods Covered",
        "2. Setup & Data",
        "2.1 Simulated Data with Known Heterogeneity",
        "2.2 The Lalonde Dataset",
        "2.3 Pre-Treatment Covariate Balance",
        "2.4 True CATE Distribution",
        "3. Meta-Learners",
        "3.1 S-Learner (Single Learner)",
        "3.2 T-Learner (Two-Learner)",
        "3.3 X-Learner (Künzel et al. 2019)",
        "3.4 R-Learner (Robinson 1988 / Nie & Wager 2021)",
        "3.5 Meta-Learner Comparison",
        "4. Causal Forests (GRF)",
        "4.1 Fitting a Causal Forest",
        "4.2 ATE Estimation",
        "4.3 CATE Predictions with Confidence Intervals",
        "4.4 Calibration Test",
        "4.5 Variable Importance",
        "4.6 CATE Distribution",
        "4.7 CATE vs. True Treatment Effect",
        "4.8 Comprehensive Summary via causal_forest_summary()",
        "5. BLP Analysis (Best Linear Predictor)",
        "5.1 The BLP Regression",
        "5.2 Running BLP Analysis",
        "5.3 BLP Plot",
        "5.4 GATES: Group Average Treatment Effects",
        "5.5 GATES Without GRF (Using OLS)",
        "6. Qini Curve & Policy Evaluation",
        "6.1 The Qini Curve",
        "6.2 Computing the Qini Curve",
        "6.3 Comparing Qini Curves Across Estimators",
        "6.4 Optimal Treatment Targeting",
        "6.5 Policy Value via AIPW",
        "7. HTE Visualization Suite",
        "7.1 Forest Plot by Subgroups",
        "7.2 CATE vs. Continuous Moderator",
        "7.3 Violin Plot by Treatment Group",
        "7.4 Partial Dependence Plot",
        "7.5 Calibration Plot: Predicted vs. Actual CATE by Decile",
        "8. Double Machine Learning (DML)",
        "8.1 The Partially Linear Model",
        "8.2 DML Implementation with Cross-Fitting",
        "8.3 Heterogeneous DML via Interactions",
        "8.4 Using the DoubleML Package",
        "8.5 Interactive Regression Model (IRM) for CATE",
        "9. AIPW / Augmented IPW for HTE",
        "9.1 The AIPW Score",
        "9.2 AIPW ATE Estimation via dr_ate()",
        "9.3 DR-Learner for CATE",
        "9.4 Efficiency Comparison: IPW vs. AIPW",
        "10. Moderated Treatment Effects",
        "10.1 Treatment-Covariate Interaction Models",
        "10.2 Omnibus Test for Moderation",
        "10.3 Marginal Effects of Treatment at Different Covariate Values",
        "10.4 Marginal Effects with marginaleffects",
        "11. Subgroup Analysis Best Practices",
        "11.1 Pre-Specified vs. Data-Driven Subgroups",
        "11.2 Multiple Testing Correction",
        "11.3 Causal Tree (Honest Partitioning)",
        "11.4 Virtual Twins Method",
        "11.5 Subgroup Forest Plot via heterogeneity_plot()",
        "12. Evaluation Framework",
        "12.1 Oracle Evaluation (Simulation)",
        "12.2 Proxy Evaluation: R-Loss and Tau-Risk",
        "12.3 Cross-Validated AUUC",
        "12.4 Bootstrap Confidence Intervals for AUUC",
        "13. CATE Estimation Uncertainty",
        "13.1 Pointwise Confidence Intervals from Causal Forest",
        "13.2 Bootstrap of Entire ML Pipeline",
        "13.3 Selective Inference Issues",
        "14. Practical HTE Analysis for Publications",
        "14.1 Complete Publication Pipeline",
        "14.2 Subgroup ATE Table",
        "14.3 Publication Forest Plot",
        "14.4 Feature Importance for HTE",
        "14.5 CATE Distribution Summary Figure",
        "15. Stochastic Treatment Regimes & Targeting Rules",
        "15.1 Optimal Policy Rules",
        "15.2 Policy Value Estimation via GRF",
        "15.3 Welfare Gain from Targeting",
        "15.4 Stochastic (Probabilistic) Policies",
        "16. Sensitivity Analysis for HTE",
        "16.1 Sensitivity to Model Specification",
        "16.2 Sensitivity to Overlap Violations",
        "17. Summary & Best Practices",
        "17.1 Choosing a CATE Estimator",
        "17.2 Key Diagnostics Checklist",
        "17.3 Reporting Checklist for Papers",
        "17.4 Cross-References to Other causalverse Vignettes",
        "18. Advanced Topics in HTE",
        "18.1 Continuous and Multi-Valued Treatments",
        "18.2 Instrumental Variables with Heterogeneity",
        "18.3 Difference-in-Differences with Heterogeneous Effects",
        "19. Practical Workflow with causalverse",
        "19.1 End-to-End HTE Pipeline",
        "19.2 Integrating AIPW and Causal Forest",
        "19.3 Using causalverse::dr_ate() on Real Data",
        "19.4 HTE on Real Data: Lalonde Job Training",
        "20. Common Pitfalls and Troubleshooting",
        "20.1 The SUTVA Violation",
        "20.2 Outcome Leakage into Covariates",
        "20.3 Extrapolation in CATE Estimation",
        "20.4 Model Selection for Nuisance Functions",
        "20.5 Testing for Effect Modification vs. Effect Measure Modification",
        "References"
      ],
      "created": "2026-03-18 18:59:58",
      "modified": "2026-08-12 19:22:27",
      "commits": 8
    },
    {
      "source": "l_mediation.Rmd",
      "filename": "l_mediation.html",
      "title": "Causal Mediation Analysis ",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Key Estimands",
        "Why Mediation Is Hard",
        "1. The Potential Outcomes Framework for Mediation",
        "Notation",
        "Formal Definitions",
        "Sequential Ignorability",
        "Identification Formula",
        "Simulated Example: Setup",
        "2. Baron-Kenny Steps (Classical Approach)",
        "Step-by-Step Implementation",
        "Sobel Test",
        "Bootstrap Sobel Test",
        "Limitations of Baron-Kenny",
        "3. Imai et al. (2010) Causal Mediation",
        "Using causalverse::mediation_analysis()",
        "Direct Use of mediation Package",
        "Quasi-Bayesian vs. Bootstrap Confidence Intervals",
        "4. Sensitivity Analysis for Mediation",
        "Sensitivity Parameter $\\rho$",
        "Running Sensitivity Analysis",
        "Interpreting Sensitivity Results",
        "$R^2$ Sensitivity Plot",
        "E-Values for Mediation",
        "5. causalverse::med_ind()  -  Monte Carlo Indirect Effects",
        "How It Works",
        "Basic Usage",
        "Comparison of Methods",
        "When to Use Monte Carlo vs. Bootstrap",
        "6. Multiple Mediators",
        "Parallel Mediation",
        "Sequential Mediation",
        "SEM for Multiple Mediators with lavaan",
        "7. Moderated Mediation (Conditional Process Analysis)",
        "Model Specification",
        "Conditional Indirect Effects",
        "Bootstrap CIs for Conditional Indirect Effects",
        "Visualization: Conditional Indirect Effects",
        "Index of Moderated Mediation (IMM)",
        "Johnson-Neyman (Floodlight) Analysis",
        "8. Mediation with Binary Outcomes",
        "Logistic Mediation",
        "Interpretation with Binary Outcomes",
        "Binary Mediator and Binary Outcome",
        "9. Mediation with Treatment Heterogeneity",
        "Subgroup-Specific ACME",
        "Treatment-Mediator Interaction",
        "10. Causal Forest for Heterogeneous Mediation",
        "Estimating CATE with grf",
        "Decomposing CATE into Mediated vs. Direct Components",
        "11. Natural Direct and Indirect Effects",
        "Definitions",
        "VanderWeele's Four-Way Decomposition",
        "Implementation with Linear Models",
        "CMAverse Package (if available)",
        "12. Difference-in-Differences Mediation",
        "Setup: Panel Data Mediation",
        "First-Differencing Mediator and Outcome",
        "Sequential Exogeneity of Mediator",
        "13. Front-Door Criterion and Instrument-Based Mediation",
        "Front-Door Identification",
        "LATE-Based Mediation Decomposition",
        "14. Lee Bounds for Mediation with Selection",
        "Setup with Selection into Mediator",
        "Manual Lee Bounds Computation",
        "causalverse::lee_bounds() (requires MedBounds package)",
        "15. Visualization Suite for Mediation",
        "1. Path Diagram",
        "2. Effect Decomposition Bar Chart",
        "3. Sensitivity Plot: ACME vs. Rho",
        "4. Proportion Mediated with Uncertainty",
        "5. Stacked Decomposition Across Subgroups",
        "16. Structural Equation Modeling (SEM) for Mediation",
        "Simple Mediation in lavaan",
        "Model Fit Assessment",
        "Modification Indices",
        "Multiple Outcomes SEM",
        "Bayesian SEM with blavaan",
        "17. Complete Publication Pipeline",
        "Step 1: Theory and Hypotheses",
        "Step 2: Data and DGP",
        "Step 3: Descriptive Statistics",
        "Step 4: Correlation Matrix",
        "Step 5: Baron-Kenny Regressions",
        "Step 6: Causal Mediation (Imai et al.)",
        "Step 7: Sensitivity Analysis",
        "Step 8: Publication Figure",
        "Step 9: APA/AMA-Style Reporting Text",
        "Step 10: Reporting Checklist",
        "18. Summary and Reference Table",
        "Effect Estimand Reference",
        "Identification Assumptions Summary",
        "Package Reference",
        "19. Common Pitfalls and Practical Guidance",
        "Pitfall 1: Treating Baron-Kenny as Causal Without Justification",
        "Pitfall 2: Ignoring Measurement Error in the Mediator",
        "Pitfall 3: Multicollinearity Between T and M in the Outcome Model",
        "Pitfall 4: Improper Handling of Confounders",
        "Pitfall 5: Reverse Causation (M → T)",
        "20. Power Analysis for Mediation",
        "Analytical Power for Sobel Test",
        "Monte Carlo Power for Bootstrap Tests",
        "Sample Size Recommendations (Fritz & MacKinnon 2007)",
        "21. Mediation in Experimental vs. Observational Settings",
        "Randomized Experiment with Mediation",
        "Designs That Strengthen Causal Claims",
        "Observational Mediation: Practical Recommendations",
        "References",
        "Session Information"
      ],
      "created": "2026-03-18 18:59:58",
      "modified": "2026-08-12 19:22:27",
      "commits": 8
    },
    {
      "source": "m_panel.Rmd",
      "filename": "m_panel.html",
      "title": "Panel Data Methods ",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Panel Data Methods",
        "1. Introduction to Panel Data",
        "1.1 What Is Panel Data?",
        "1.2 Balanced vs. Unbalanced Panels",
        "1.3 Long vs. Wide Format",
        "1.4 Why Use Panel Data?",
        "2. Panel Data Structure & Exploration",
        "2.1 Simulating a Panel Dataset",
        "2.2 Checking Balance",
        "2.3 Using get_balanced_panel() from causalverse",
        "2.4 Within and Between Variation Decomposition",
        "2.5 Intraclass Correlation (ICC)",
        "2.6 Missing Data Visualization",
        "3. Pooled OLS",
        "3.1 Assumptions and Validity",
        "3.2 Estimation",
        "3.3 Cluster-Robust Standard Errors (Liang-Zeger)",
        "4. Fixed Effects (Within Estimator)",
        "4.1 The Within Transformation",
        "4.2 Two-Way FE",
        "4.3 Interpreting Fixed Effects",
        "4.4 Two-Way Cluster-Robust Standard Errors",
        "4.5 Extracting Fixed Effects",
        "4.6 Using tidy_causal() for FE Results",
        "5. Random Effects (GLS)",
        "5.1 The Random Effects Model",
        "5.2 Hausman Test: FE vs RE",
        "5.3 Mundlak Correlated Random Effects (CRE)",
        "6. First-Differences Estimator",
        "6.1 When to Use First Differences",
        "6.2 FD vs FE Comparison",
        "6.3 First-Difference IV",
        "7. Between Estimator",
        "7.1 The Between Regression",
        "7.2 Interpretation and Limitations",
        "8. Two-Way Mundlak / Correlated Random Effects",
        "8.1 The Mundlak Device",
        "8.2 Two-Way CRE (Wooldridge 2021)",
        "8.3 CRE with Unbalanced Panels",
        "9. Panel Unit Root Tests",
        "9.1 Why Unit Roots Matter in Panels",
        "9.2 ADF Test Per Unit",
        "9.3 KPSS Test (Stationarity Null)",
        "9.4 Im-Pesaran-Shin (IPS) Panel Unit Root Test",
        "9.5 Levin-Lin-Chu (LLC) Test",
        "9.6 Decision Tree for I(0) vs I(1)",
        "10. Serial Correlation Tests",
        "10.1 Why Serial Correlation Matters",
        "10.2 Wooldridge (2002) Test",
        "10.3 Breusch-Godfrey / Durbin-Watson for Panels",
        "10.4 Correcting Serial Correlation",
        "11. Cross-Sectional Dependence",
        "11.1 What Is Cross-Sectional Dependence?",
        "11.2 Pesaran (2004) CD Test",
        "11.3 Frees (1995) Test",
        "11.4 Pesaran CCEMG Estimator (Concept)",
        "12. Heteroskedasticity in Panels",
        "12.1 Testing for Panel Heteroskedasticity",
        "12.2 Modified Wald Test for Group-Wise Heteroskedasticity",
        "12.3 Solutions",
        "13. Dynamic Panel Models (GMM)",
        "13.1 The Nickell Bias",
        "13.2 Arellano-Bond GMM (AB)",
        "13.3 System GMM (Blundell-Bond)",
        "13.4 Sargan-Hansen Instrument Validity Test",
        "13.5 Arellano-Bond AR(1) and AR(2) Tests",
        "13.6 Instrument Proliferation Warning",
        "14. Panel Cointegration",
        "14.1 Spurious Regressions in Panels",
        "14.2 Engle-Granger Panel Cointegration",
        "14.3 Error Correction Model (ECM)",
        "15. Interactive Fixed Effects & Factor Models",
        "15.1 Bai (2009) Interactive FE Model",
        "15.2 Principal Component Estimation",
        "15.3 Comparison: TWFE vs Interactive FE",
        "16. Nonlinear Panel Models",
        "16.1 The Incidental Parameter Problem",
        "16.2 Fixed Effects Logit",
        "16.3 Fixed Effects Poisson",
        "16.4 Comparing Poisson vs OLS for Count Outcomes",
        "17. Unbalanced Panels and Attrition",
        "17.1 Types of Missingness",
        "17.2 Attrition Bias Illustration",
        "17.3 Inverse Probability Weighting (IPW) for Attrition",
        "18. Long-Run Effects in Panels",
        "18.1 Distributed Lag Models",
        "18.2 Local Projections (Jordà 2005)",
        "19. Panel Data Visualization Suite",
        "19.1 Spaghetti Plot with Mean Trend",
        "19.2 Panel Heatmap",
        "19.3 Variance Decomposition Plot",
        "19.4 ACF of Panel Residuals by Unit",
        "19.5 Within vs Between Scatter",
        "20. Publication Pipeline",
        "20.1 Assumption Checklist",
        "20.2 Four-Column Comparison Table",
        "20.3 Using causal_table() for Journal Output",
        "20.4 Using tidy_causal() for Programmatic Extraction",
        "20.5 Coefficient Plot Across Estimators",
        "20.6 Reporting Guidance",
        "21. Driscoll-Kraay Standard Errors",
        "21.1 Motivation",
        "21.2 Implementation",
        "21.3 When to Use Driscoll-Kraay",
        "22. Heterogeneous Treatment Effects in Panels",
        "22.1 Problem with Pooled FE under Heterogeneity",
        "22.2 Detecting Heterogeneity",
        "22.3 Binscatter by Heterogeneity Dimension",
        "22.4 Mean Group Estimator (Pesaran & Smith 1995)",
        "23. Specification Curves for Panel Models",
        "23.1 Researcher Degrees of Freedom",
        "24. Panel Power Analysis",
        "24.1 Power in Panel Designs",
        "24.2 Simulation-Based Power Curve",
        "24.3 Minimum Detectable Effect (MDE) in Panels",
        "25. Advanced Topics: Synthetic Control as Panel Method",
        "25.1 Connection to Panel Data",
        "25.2 Matrix Completion Perspective",
        "26. Practical Workflow Example: Firm-Level Panel",
        "26.1 End-to-End Application",
        "26.2 Step 1  -  Descriptives and Balance",
        "26.3 Step 2  -  Unit Root Screening",
        "26.4 Step 3  -  Model Estimation",
        "26.5 Step 4  -  Diagnostics",
        "26.6 Step 5  -  Final Preferred Model",
        "26.7 Visualization of Final Results",
        "Summary",
        "References"
      ],
      "created": "2026-03-18 18:59:58",
      "modified": "2026-08-12 19:22:27",
      "commits": 8
    },
    {
      "source": "n_third_variable_roles.Rmd",
      "filename": "n_third_variable_roles.html",
      "title": "Moderator, Mediator, Both, or Neither? ",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The question",
        "Did the treatment move Z?",
        "The gated role test",
        "How often do the rules get it right?",
        "Bounds when the moderator was measured after treatment",
        "References"
      ],
      "created": "2026-11-29 06:45:59",
      "modified": "2026-11-29 06:45:59",
      "commits": 1
    },
    {
      "source": "o_journal_formatting.Rmd",
      "filename": "o_journal_formatting.html",
      "title": "Formatting Tables and Figures for a Target Journal",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The journals covered",
        "Look up one journal",
        "How the rules differ",
        "One set of models, many journals",
        "Exporting",
        "Checking a table against another journal",
        "Figures",
        "Keeping the rules current"
      ],
      "created": "2026-11-26 02:11:09",
      "modified": "2026-11-29 21:34:09",
      "commits": 3
    },
    {
      "source": "e_rd.Rmd",
      "filename": "e_rd.html",
      "title": "Regression Discontinuity ",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Introduction to Regression Discontinuity Designs",
        "1.1 Potential Outcomes Framework for RD",
        "1.2 Key Identifying Assumptions",
        "1.3 Sharp vs. Fuzzy RD",
        "1.4 Continuity-Based vs. Local Randomization Approaches",
        "2. Simulated Data",
        "3. Visual RD Analysis",
        "3.1 Raw Scatter Plot",
        "3.2 Binned Scatter Plot",
        "3.3 Local Polynomial Fits",
        "3.4 Linear Fits with Varying Bandwidths",
        "4. The rdrobust Package (Calonico, Cattaneo, Titiunik 2014)",
        "4.1 Basic Estimation with rdrobust()",
        "4.2 RD Plots with rdplot()",
        "4.3 Bandwidth Sensitivity Analysis",
        "4.4 Different Kernel Choices",
        "4.5 Different Polynomial Orders",
        "4.6 Including Covariates in rdrobust",
        "4.7 Clustered Standard Errors",
        "4.8 Additional rdrobust Options",
        "5. The rddensity Package (Cattaneo, Jansson, Ma 2020)",
        "5.1 Histogram Check",
        "5.2 Formal Density Test with rddensity()",
        "5.3 Density Plots with rdplotdensity()",
        "5.4 Advanced Options for rddensity",
        "6. The rdpower Package (Cattaneo, Titiunik, Vazquez-Bare 2019)",
        "6.1 Power Calculations with rdpower()",
        "6.2 Power for Different Effect Sizes",
        "6.3 Sample Size Calculations with rdsampsi()",
        "6.4 Power with Covariates",
        "7. The rdlocrand Package (Cattaneo, Frandsen, Titiunik 2015)",
        "7.1 Window Selection with rdwinselect()",
        "7.2 Randomization Inference with rdrandinf()",
        "7.3 Bernoulli vs. Fixed Margins Randomization",
        "7.4 Sensitivity to Window Choice",
        "7.5 Randomization Inference with Covariates",
        "8. The rdmulti Package (Cattaneo, Keele, Titiunik, Vazquez-Bare 2021)",
        "8.1 Simulated Multi-Cutoff Data",
        "8.2 Multi-Cutoff RD with rdmc()",
        "8.3 Multi-Score RD with rdms()",
        "8.4 Visualization for Multi-Cutoff Designs",
        "9. RD Bounds with the rdbounds Package and causalverse",
        "9.1 Conceptual Framework",
        "9.2 Full rdbounds Workflow for Sharp RD",
        "9.3 Full rdbounds Workflow for Fuzzy RD",
        "9.4 Customizing the Bounds Plot",
        "10. Fuzzy RD in Detail",
        "10.1 First Stage: Cutoff Predicts Treatment",
        "10.2 Reduced Form: Cutoff Predicts Outcome",
        "10.3 IV Estimation with fixest::feols()",
        "10.4 Bandwidth Sensitivity for Fuzzy RD",
        "10.5 Fuzzy RD with rdrobust",
        "11. Covariate Balance Tests",
        "11.1 Covariate-as-Outcome Tests",
        "11.2 Visual Balance Check",
        "11.3 Covariate Balance with rdrobust",
        "11.4 Visual Covariate Plots",
        "12. Lee Bounds and the Connection to RD",
        "12.1 Using lee_bounds() from causalverse",
        "13. Sharp RD Estimation with fixest",
        "13.1 Local Linear Regression",
        "13.2 Bandwidth Sensitivity",
        "13.3 Higher-Order Polynomial Specifications",
        "13.4 Triangular Kernel Weights",
        "14. Heterogeneous Treatment Effects in RD with rdhte",
        "14.1 Simulated Example",
        "14.2 Bandwidth Selection for HTE",
        "14.3 Linear Combinations of Effects",
        "15. Boundary/Geographic RD with rd2d",
        "15.1 Simulated Example",
        "15.2 Rich Geographic Visualizations",
        "Panel 1: Treatment Boundary Map",
        "Panel 2: Outcome Heat Map (Choropleth)",
        "Panel 3: Density of Units Near the Boundary",
        "Panel 4: The Jump at the Boundary (RD Plot)",
        "16. Regression Kink Design",
        "16.1 Theory",
        "16.2 Estimation with rdrobust",
        "16.3 Visualizing the Kink",
        "17. RD with Discrete Running Variable",
        "17.1 Key Challenges",
        "17.2 Binomial Test Approach",
        "17.3 Local Linear Estimation with Clustering",
        "18. Practical Guidelines for Applied Researchers",
        "14.1 Design Phase",
        "14.2 Analysis Checklist",
        "14.3 Common Pitfalls",
        "14.4 Placebo Cutoff Tests",
        "14.5 Donut Hole Tests",
        "19. Comprehensive Visualization Suite for RD",
        "19.1 Publication-Ready RD Plot with Binned Scatter",
        "19.2 Full RD Assumption Test Battery",
        "19.3 Bandwidth Sensitivity Visualization",
        "19.4 Placebo Cutoff Visualization",
        "19.5 Density Continuity (McCrary) Test Visualization",
        "19.6 Covariate Balance at the Cutoff",
        "19.7 Confidence Interval Comparison: Conventional vs. Robust",
        "19.8 Local Randomization Framework: Balance Tests",
        "19.9 Fuzzy RD: First Stage and Reduced Form Visualization",
        "19.10 Complete RD Publication Pipeline",
        "20. Comprehensive References",
        "Foundational References",
        "Estimation and Inference",
        "Manipulation Testing",
        "Power Analysis",
        "Local Randomization",
        "Multiple Cutoffs and Scores",
        "Bounds Under Manipulation",
        "Lee Bounds and Selection",
        "Polynomial Warnings",
        "Software and Implementation"
      ],
      "created": "2026-03-18 18:59:58",
      "modified": "2026-11-27 01:57:54",
      "commits": 6
    },
    {
      "source": "b_synthdid.Rmd",
      "filename": "b_synthdid.html",
      "title": "Synthetic Difference-in-Differences ",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Theory and Background",
        "Overview",
        "Mathematical Formulation",
        "Unit Weights ($\\hat{\\omega}$)",
        "Time Weights ($\\hat{\\lambda}$)",
        "Comparison with SC and DID",
        "Assumptions",
        "Synthetic DID",
        "Block Adoption (Assignment)",
        "Incorporating Covariates (Residualization)",
        "Why Use Covariates?",
        "The Residualization Approach",
        "Single Covariate Example",
        "Multiple Covariates",
        "Important Considerations for Residualization",
        "Diagnostics",
        "Inspecting Unit Weights",
        "Pre-Treatment Fit Assessment",
        "Placebo and RMSE Diagnostics",
        "Comparing Diagnostics Across Estimators",
        "Standard Errors and Inference",
        "Placebo Method",
        "Jackknife Method",
        "Bootstrap Method",
        "Comparison of SE Methods",
        "Constructing Confidence Intervals",
        "Multiple Estimators with panel_estimate()",
        "Available Estimators",
        "Running All Estimators",
        "Interpreting the Results",
        "Visualizing Estimator Comparison",
        "Per-Period Treatment Effects",
        "Decomposing Effects by Period",
        "Visualizing Per-Period Effects",
        "Staggered Adoptions",
        "Best Practices and Practical Guidance",
        "When to Use SynthDID vs. SC vs. DID",
        "Reporting Guidelines",
        "Common Pitfalls",
        "Comprehensive Visualization Suite for Synthetic DID",
        "Treated vs. Synthetic Control Trajectory",
        "Unit and Time Weights",
        "Estimator Comparison",
        "RMSPE Ratio: Placebo Inference",
        "Staggered Adoption: ATE Across Cohorts",
        "Extended Visualization Suite",
        "Gap Plot with In-Space Placebos",
        "Treatment Calendar: Staggered Adoption Timing",
        "Staggered Adoption Summary Table",
        "Trajectory Plot: Observed vs. Synthetic with Shaded Treatment Window",
        "Unit Weight Bar Chart (Top Donors)",
        "Time Weight Bar Chart",
        "Estimator Comparison with Confidence Intervals",
        "Inference Methods Deep Dive",
        "Overview of Inference Approaches",
        "Placebo (In-Space) Standard Errors",
        "Jackknife Standard Errors",
        "Bootstrap Standard Errors",
        "Comparing All Three SE Methods",
        "RMSPE Ratio Test: Permutation Inference",
        "Staggered Adoption: A Complete Workflow",
        "Setting Up the Staggered Data",
        "Cohort Structure Visualization",
        "Per-Cohort SDID Estimates",
        "Comparing Staggered SDID vs. DID vs. SC",
        "Covariates in SynthDID: Residualization and Balance",
        "Why Residualize?",
        "Step-by-Step Residualization",
        "Covariate Balance Before and After Weighting",
        "Multiple Treated Units",
        "Setup with Multiple Treated Units",
        "Aggregate and Per-Unit Estimates",
        "Using panel_estimate() for Multiple Estimators",
        "Per-Unit Standard Errors",
        "Sensitivity Analysis: Leave-One-Out Donors",
        "Leave-One-Out Estimation",
        "Visualizing LOO Sensitivity",
        "LOO Gap Plot for Key Donors",
        "Publication Pipeline: End-to-End Example",
        "Step 1: Data Description and Balance",
        "Step 2: Run All Estimators",
        "Step 3: Extract and Tidy the SynthDID Estimate",
        "Step 4: Publication Table via causal_table()",
        "Step 5: Final Reporting Summary",
        "References"
      ],
      "created": "2024-01-12 20:40:16",
      "modified": "2026-08-12 19:22:27",
      "commits": 10
    },
    {
      "source": "c_did.Rmd",
      "filename": "c_did.html",
      "title": "Difference-in-Differences ",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Assumptions",
        "Treatment Variation Plot",
        "Pre-treatment Parallel Trends",
        "plot_par_trends",
        "plot_coef_par_trends",
        "Random Treatment Assignments",
        "Random Time Assignment",
        "Random Unit Assignment",
        "DID with in and out treatment status",
        "Plots",
        "Balance Scatter",
        "Balance Trends over Pre-treatment Periods",
        "Estimation",
        "Staggered DID",
        "Additional Analyses",
        "DID Plot",
        "State-of-the-Art DID Methods",
        "Callaway and Sant'Anna (2021) with did",
        "de Chaisemartin and D'Haultfoeuille (2020) with DIDmultiplegt",
        "Honest DiD (Rambachan and Roth, 2023)",
        "did2s: Two-Stage DID (Gardner, 2022)",
        "Doubly Robust DID with DRDID",
        "References",
        "Modern DID Approaches",
        "Callaway and Sant'Anna (2021) - Group-Time ATTs",
        "de Chaisemartin and D'Haultfoeuille (2020)",
        "Gardner (2022) Two-Stage DID with did2s",
        "Imputation Estimator (Borusyak, Jaravel, Spiess 2024)",
        "Sensitivity Analysis for Parallel Trends with HonestDiD",
        "Choosing Among Modern DID Estimators",
        "Side-by-Side Comparison: TWFE vs. Sun-Abraham on Staggered Data",
        "Bacon Decomposition with bacondecomp",
        "TWFE Diagnostic Weights with TwoWayFEWeights",
        "Fast Staggered DID with fastdid",
        "Fixed Effects Counterfactual with fect",
        "Panel Data Visualization with panelView",
        "DIDHAD - Heterogeneous Adoption Designs",
        "Staggered Treatment Timing with staggered",
        "Visualization Suite for DiD",
        "Simulating a Rich Staggered Dataset",
        "Treatment Effect Distribution (Unit-Level ATTs)",
        "Event Study with Bonferroni-Corrected Simultaneous Confidence Bands",
        "Cohort-Specific Treatment Effect Plots",
        "Parallel Trends Visualization with Multiple Control Units",
        "Counterfactual Trajectory Plot",
        "Two-Way Mundlak (Correlated Random Effects) as DiD Alternative",
        "The Mundlak Device",
        "Sensitivity to Control Group Selection",
        "Complete Publication-Ready DiD Pipeline",
        "Step 1: Balance Check (Pre-Treatment Covariate Comparability)",
        "Step 2: Pre-Trend Test (Formal Joint Wald Test)",
        "Step 3: Main Estimates with Multiple Estimators",
        "Step 4: Placebo Test via Randomised Cohort Assignment",
        "Step 5: Robustness to Outcome Transformation",
        "Step 6: Publication-Ready Coefficient Plot (All Specifications)",
        "Minimum Requirements Checklist for Top-Journal Submission",
        "HonestDiD  -  Sensitivity to Parallel Trends Violations (Rambachan & Roth 2023)",
        "The HonestDiD Framework",
        "Why Pre-Trend Tests Are Misleading",
        "Implementation with fixest and HonestDiD",
        "Event Study Regression",
        "Extracting Coefficients for HonestDiD",
        "Smoothness Restriction Sensitivity Analysis",
        "Breakdown M: Smallest Violation That Breaks Significance",
        "Relative Magnitudes Restriction",
        "Callaway-Sant'Anna with Pre-Trend Test Integration",
        "Stacked DiD with HonestDiD",
        "Running Stacked DiD with causalverse",
        "Applying HonestDiD to Stacked Estimates",
        "Extended Parallel Trends Diagnostics Battery",
        "Step 1: Pre-Trend F-Test",
        "Step 2: Pre-Trend Power Analysis",
        "Step 3: Plausibility-Weighted Pre-Trend Test (Roth 2022)",
        "Step 4: Granger-Type Test (Does Past Treatment Predict Current Outcome?)",
        "Step 5: Placebo / Permutation Test",
        "Step 6: Density Test  -  Pre-Treatment Slope Balance",
        "Summary Diagnostics Dashboard",
        "Additional References (HonestDiD and Diagnostics)"
      ],
      "created": "2024-01-12 20:40:16",
      "modified": "2026-08-12 19:22:27",
      "commits": 8
    },
    {
      "source": "f_sc.Rmd",
      "filename": "f_sc.html",
      "title": "Synthetic Controls ",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Introduction",
        "1.1 The Problem of Comparative Case Studies",
        "1.2 Mathematical Formulation",
        "1.3 Key Assumptions",
        "1.4 Advantages Over Traditional Methods",
        "1.5 Relationship to Other Methods",
        "2. California Proposition 99 Example",
        "2.1 Data Overview",
        "2.2 Setting Up the Panel Matrices",
        "2.3 Pure Synthetic Control Estimate",
        "2.4 Synthetic Difference-in-Differences Estimate",
        "2.5 Standard DID Estimate",
        "2.6 Visualizing the Estimates",
        "2.7 Unit Contribution Plot",
        "3. causalverse Synthetic Control Functions",
        "3.1 Available Estimation Methods",
        "3.2 Comparing All Methods with panel_estimate()",
        "3.3 Formatting Results with process_panel_estimate()",
        "3.4 Data Preparation with get_balanced_panel()",
        "3.5 Single-Cohort Estimation with synthdid_est()",
        "4. Standard Errors and Inference",
        "4.1 Placebo-Based Inference with synthdid_se_placebo()",
        "4.2 Jackknife Standard Errors with synthdid_se_jacknife()",
        "4.3 Comparison of SE Methods",
        "4.4 Confidence Intervals from synthdid_est_ate()",
        "5. Staggered Adoption Synthetic Controls",
        "5.1 The Staggered Adoption Problem",
        "5.2 The synthdid_est_ate() Function",
        "5.3 Visualizing Staggered SC Results with synthdid_plot_ate()",
        "5.4 Comparing Multiple Methods Under Staggered Adoption",
        "5.5 Placebo Analysis for Staggered Adoption",
        "6. Per-Period Treatment Effects",
        "6.1 Decomposing Effects with synthdid_est_per()",
        "6.2 Interpreting Per-Period Effects",
        "6.3 Visualizing Per-Period Effects",
        "7. The Classic Synth Package",
        "7.1 The dataprep() Function",
        "7.2 The synth() Function",
        "7.3 Diagnostic Plots",
        "7.4 Placebo Tests with Synth",
        "8. Augmented Synthetic Control with augsynth",
        "8.1 Motivation",
        "8.2 The ASCM Estimator",
        "8.3 Using the augsynth Package",
        "8.4 Ridge ASCM",
        "8.5 Other Outcome Models",
        "8.6 Staggered Adoption with augsynth",
        "9. Generalized Synthetic Control with gsynth",
        "9.1 Motivation",
        "9.2 The IFE Model",
        "9.3 Using the gsynth Package",
        "9.4 Examining Results",
        "9.5 Multiple Treated Units",
        "9.6 Choosing the Number of Factors",
        "10. Placebo Tests and Falsification",
        "10.1 In-Space Placebos",
        "10.2 In-Time Placebos",
        "10.3 Pre-Treatment Fit Assessment",
        "11. Pre-Trend Visualization",
        "11.1 Gap Plots",
        "11.2 Path Plots",
        "11.3 Ratio of Post/Pre MSPE",
        "12. Practical Guidelines",
        "12.1 When to Use SC vs. SynthDID vs. DID",
        "12.2 Donor Pool Selection",
        "12.3 Number of Pre-Treatment Periods",
        "12.4 Reporting Checklist",
        "12.5 Common Pitfalls",
        "13. Tidy Synthetic Controls with tidysynth",
        "14. Penalized Synthetic Controls with pensynth",
        "15. SCtools Extensions",
        "16. Micro-level Synthetic Controls with microsynth",
        "13. Summary of causalverse SC Functions",
        "15. Visualization Suite for Synthetic Control",
        "A. Predictor Balance Table",
        "B. Donor Weight Plot",
        "C. Gap Plot",
        "D. In-Space Placebo Distribution Overlay",
        "E. Pre/Post RMSPE Ratio Distribution",
        "16. Inference for Synthetic Controls",
        "A. Fisher Exact P-Values from Placebo Distribution",
        "B. Ratio Test: Post/Pre RMSPE",
        "C. Confidence Sets from In-Time and In-Space Placebos",
        "17. Partially Pooled Synthetic Control (Abadie-L'Hour)",
        "18. Publication-Ready SC Table and Figures",
        "A. Standard Predictor Balance Table",
        "B. Comparison of SC, Augmented SC, and SynthDiD Estimates",
        "14. References",
        "Foundational Papers",
        "Synthetic Difference-in-Differences",
        "Augmented Synthetic Control",
        "Staggered Adoption",
        "Generalized Synthetic Control",
        "De-meaned SC and Extensions",
        "Inference",
        "Matrix Completion",
        "Software"
      ],
      "created": "2026-03-18 18:59:58",
      "modified": "2026-11-27 00:12:07",
      "commits": 5
    },
    {
      "source": "g_iv.Rmd",
      "filename": "g_iv.html",
      "title": "Instrumental Variables ",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "The Endogeneity Problem",
        "Omitted Variable Bias (OVB)",
        "Simultaneity (Reverse Causality)",
        "Measurement Error",
        "The IV Solution",
        "Potential Outcomes Framework for IV",
        "The LATE Interpretation",
        "Core Assumptions",
        "1. Relevance (First Stage)",
        "2. Exclusion Restriction",
        "3. Independence (Exogeneity)",
        "4. Monotonicity",
        "Mathematical Notation for 2SLS",
        "Simulated IV Data",
        "OLS vs. IV: Demonstrating the Bias",
        "OLS Estimation (Biased)",
        "2SLS Estimation (Consistent)",
        "Comparison Table",
        "2SLS with fixest",
        "Basic Syntax",
        "Multiple Instruments",
        "Fixed Effects + IV",
        "First-Stage F-statistic with fitstat()",
        "Wu-Hausman Test",
        "Clustered Standard Errors",
        "Multiple Estimations",
        "ivreg Package",
        "First-Stage Diagnostics",
        "First-Stage Regression",
        "F-Statistic and the Rule of Thumb",
        "Partial R-Squared",
        "Visualization of the First Stage",
        "Stock-Yogo Critical Values",
        "Weak Instruments",
        "The Problem",
        "Anderson-Rubin Confidence Sets",
        "The tF Procedure (Lee et al. 2022)",
        "Implementing the tF Procedure",
        "Over-identification Tests",
        "The Sargan-Hansen J Test",
        "When to Use Multiple Instruments",
        "Sensitivity Analysis with sensemakr",
        "Basic Sensitivity Analysis",
        "Contour Plots",
        "Benchmarking",
        "Application to the IV Context",
        "IV with Panel Data",
        "Fixed Effects IV",
        "First-Differenced IV",
        "Shift-Share (Bartik) Instruments",
        "Structure",
        "Identification",
        "Practical Considerations",
        "Judge/Examiner IV Designs",
        "Key Assumptions",
        "Recent Methodological Advances",
        "Visualizing IV",
        "First-Stage Scatter",
        "Reduced-Form Scatter",
        "OLS vs. IV Coefficient Comparison",
        "Binned Scatter Plot for First Stage",
        "LIML, Fuller, and K-Class Estimators",
        "The K-Class Family",
        "Implementation with ivmodel",
        "Comprehensive IV Diagnostics with ivDiag",
        "The Effective F-Statistic",
        "Implementation with ivDiag",
        "LASSO-Selected Instruments and Many Instruments",
        "The Many-Instruments Problem",
        "Implementation with hdm",
        "Jackknife Instrumental Variables (JIVE)",
        "Leave-One-Out First Stage",
        "Implementation with SteinIV",
        "Marginal Treatment Effects (MTE)",
        "The MTE Framework",
        "Implementation with ivmte",
        "Control Function Approach",
        "Two-Stage Residual Inclusion",
        "Manual Implementation with fixest",
        "Internal Instruments: Heteroskedasticity-Based and Copula Methods",
        "When No External Instrument Is Available",
        "Implementation with REndo",
        "Partial Identification and Bounds",
        "When the Exclusion Restriction is Imperfect",
        "Manual Implementation: Sensitivity to Exclusion Restriction Violations",
        "Nonparametric IV Estimation",
        "Beyond Linearity",
        "Implementation with npiv",
        "Randomization Inference for IV",
        "Finite-Sample Valid P-Values",
        "Manual Implementation",
        "Regression Kink Design",
        "Exploiting Kinks in Policy Rules",
        "Implementation with rdrobust",
        "Mendelian Randomization",
        "Genetic Variants as Instruments",
        "Practical Guidelines",
        "Before Estimation",
        "During Estimation",
        "Robustness Checks",
        "Reporting",
        "22. Comprehensive Visualization Suite for IV",
        "22.1 First-Stage Visualization",
        "22.2 IV vs OLS Comparison Plot",
        "22.3 Weak Instrument Diagnostics Plot",
        "22.4 IV Sensitivity Analysis: Exclusion Restriction",
        "22.5 Anderson-Rubin Weak-IV Robust Confidence Intervals",
        "22.6 Shift-Share (Bartik) Instrument Diagnostics",
        "22.7 LATE Heterogeneity: Who are the Compliers?",
        "22.8 Complete IV Publication Pipeline",
        "References",
        "Mendelian Randomization (Genomic IVs)",
        "The Three MR Assumptions",
        "Summary-Level MR: IVW, Egger, and Weighted Median",
        "Egger Intercept as a Pleiotropy Test",
        "Local Average Structural Function (LASF) and Heterogeneous LATE",
        "The Complier Population",
        "Characterizing Compliers",
        "Local Average Response Function",
        "Bartik Instruments in Depth (Shift-Share IV)",
        "Identification Conditions: Two Views",
        "Rotemberg Weights and Industry Concentration",
        "Sensitivity: Drop Top Industry",
        "Many-Weak Instruments and LIML",
        "The Many-IV Problem",
        "IV with Heterogeneous Effects: Marginal Treatment Effects (Heckman-Vytlacil)",
        "From MTE to Standard Parameters",
        "Policy-Relevant Treatment Effects (PRTE)",
        "The ivmte Package for MTE Estimation",
        "Additional References (MR, Bartik, Many-IV, MTE)"
      ],
      "created": "2026-03-18 18:59:58",
      "modified": "2026-08-12 19:22:27",
      "commits": 7
    },
    {
      "source": "h_event_study.Rmd",
      "filename": "h_event_study.html",
      "title": "Event Studies (Finance) ",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Introduction",
        "1.1 What Is a Finance Event Study?",
        "1.2 A Brief History",
        "1.3 Finance Event Studies vs. Econometric Event Studies",
        "2. The Event Study Framework",
        "2.1 Timeline and Windows",
        "2.2 Normal Return Models",
        "2.2.1 Constant Mean Return Model",
        "2.2.2 Market Model",
        "2.2.3 Market-Adjusted Return Model",
        "2.2.4 Fama-French Three-Factor Model",
        "2.2.5 Carhart Four-Factor Model",
        "2.3 Abnormal Returns",
        "2.4 Cumulative Abnormal Returns (CAR)",
        "2.5 Buy-and-Hold Abnormal Returns (BHAR)",
        "3. Simulated Data",
        "4. Market Model Estimation",
        "4.1 OLS Estimation in the Estimation Window",
        "4.2 Estimation Using fixest::feols()",
        "4.3 Computing Abnormal Returns",
        "4.4 Visualizing Average Abnormal Returns",
        "5. Cumulative Abnormal Returns (CAR)",
        "5.1 Computing CAR for Individual Firms",
        "5.2 Cumulative Average Abnormal Return Over Time",
        "5.3 Visualizing CAAR",
        "5.4 CAR Distribution Across Firms",
        "6. Statistical Tests",
        "6.1 Parametric Tests",
        "6.1.1 Cross-Sectional t-Test",
        "6.1.2 Standardized Cross-Sectional Test (Patell Test)",
        "6.1.3 BMP Test (Boehmer, Musumeci, and Poulsen, 1991)",
        "6.2 Non-Parametric Tests",
        "6.2.1 Sign Test",
        "6.2.2 Generalized Sign Test",
        "6.2.3 Rank Test (Corrado, 1989)",
        "6.3 Summary of Test Results",
        "7. Buy-and-Hold Abnormal Returns (BHAR)",
        "7.1 Why BHAR?",
        "7.2 BHAR Calculation",
        "7.3 BHAR Accumulation Over Time",
        "7.4 Calendar-Time Portfolio Approach (CTAR)",
        "8. Fama-French Factor Models",
        "8.1 Three-Factor Model",
        "8.2 Carhart Four-Factor Model",
        "8.3 Which Model to Use?",
        "9. The EventStudy Package",
        "9.1 Basic Usage",
        "9.2 Available Models in EventStudy",
        "9.3 Available Tests in EventStudy",
        "10. Cross-Sectional Analysis of CARs",
        "10.1 Motivation",
        "10.2 OLS Cross-Sectional Regression",
        "10.3 Using fixest::feols()",
        "10.4 Interpreting Cross-Sectional Results",
        "10.5 Multiple Window Analysis",
        "11. The estudy2 Package: C++ Optimized Event Study Tests",
        "11.1 Overview of Available Tests",
        "11.2 Basic Usage with estudy()",
        "11.3 Interpreting Nonparametric Results",
        "12. Long-Horizon Event Studies",
        "12.1 Calendar-Time Portfolio Approach (CTPR)",
        "12.2 Buy-and-Hold Abnormal Returns (Long-Horizon)",
        "12.3 Robust Inference with crseEventStudy",
        "13. Event-Induced Variance and Cross-Sectional Dependence",
        "13.1 The Kolari-Pynnonen (2010) Adjusted BMP Test",
        "13.2 Handling Event Date Clustering",
        "14. Wealth Effects and Dollar Abnormal Returns",
        "14.1 Converting CARs to Dollar Returns",
        "14.2 Portfolio-Level Wealth Analysis",
        "15. Best Practices and Common Pitfalls",
        "15.1 Event Date Accuracy",
        "15.2 Overlapping Events",
        "15.3 Thin Trading",
        "15.4 Event-Induced Variance",
        "15.5 Clustering of Event Dates",
        "15.6 Estimation Window Length",
        "15.7 Short-Selling Constraints and Market Microstructure",
        "16. Comparison: Finance vs. Econometric Event Studies",
        "16.1 Finance Event Studies",
        "16.2 Econometric Event Studies (Dynamic DID)",
        "16.3 When to Use Which",
        "17. Putting It All Together: A Complete Event Study Pipeline",
        "18. Total Event Valuation and Aggregate Wealth Effects",
        "18.1 From CAR to Dollar Wealth Effect",
        "18.2 Market-Cap Weighted vs. Equal-Weighted CARs",
        "18.3 Industry Spillover and Rival Wealth Effects",
        "18.4 Cross-Sectional Regression: Determinants of CARs",
        "18.5 M&A Wealth Effects: Combined Firm Value (CFV)",
        "18.6 Bootstrap Confidence Intervals for CARs",
        "18.7 Multiple Testing Corrections (FDR/Bonferroni)",
        "18.8 Power Analysis for Event Studies",
        "18.9 Full Publication-Quality Event Study Table",
        "18.10 NPV Interpretation: CAR as Capitalized Value Change",
        "18.11 Normalized Event Cost Metrics",
        "18.12 Population Extrapolation: Scaling to the Full Industry",
        "18.13 Regulatory Cost Assessment via Event Studies",
        "Method",
        "Caveat: The Endogeneity Problem",
        "19. Advanced Topics: Intraday Event Studies and High-Frequency Data",
        "19.1 Intraday vs. Daily Event Studies",
        "19.2 Volatility Around Events: Event-Induced Variance",
        "19.3 Announcement Returns vs. Pre-Announcement Drift",
        "20. References"
      ],
      "created": "2026-03-18 18:59:58",
      "modified": "2026-11-27 01:57:54",
      "commits": 7
    },
    {
      "source": "i_matching.Rmd",
      "filename": "i_matching.html",
      "title": "Matching Methods ",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Introduction",
        "1.1 The Fundamental Problem and Why Matching Helps",
        "1.2 Selection on Observables",
        "Conditional Independence Assumption (CIA)",
        "Common Support (Overlap) Condition",
        "1.3 The Curse of Dimensionality",
        "1.4 ATT vs. ATE",
        "1.5 Mathematical Framework for Matching Estimators",
        "Nearest-Neighbor Matching",
        "Propensity Score Matching",
        "Inverse Probability Weighting (IPW)",
        "Subclassification (Stratification)",
        "2. Simulated Data",
        "3. Balance Assessment with causalverse",
        "3.1 balance_assessment(): SUR and Hotelling's T-Test",
        "3.2 plot_density_by_treatment(): Density Plots",
        "3.3 balance_scatter_custom(): Standardized Mean Difference Scatter Plot",
        "3.4 plot_covariate_balance_pretrend(): Balance Over Time",
        "4. The MatchIt Package",
        "4.1 Nearest Neighbor Matching",
        "4.2 Optimal Matching",
        "4.3 Full Matching",
        "4.4 Coarsened Exact Matching (CEM)",
        "4.5 Subclassification",
        "4.6 Propensity Score Matching (Detailed)",
        "4.7 Mahalanobis Distance Matching",
        "4.8 Estimation After Matching",
        "5. The cobalt Package: Balance Assessment",
        "5.1 Balance Tables with bal.tab()",
        "5.2 Love Plots with love.plot()",
        "5.3 Distributional Balance with bal.plot()",
        "6. The WeightIt Package: Propensity Score Weighting",
        "6.1 Basic Usage",
        "6.2 Entropy Balancing",
        "6.3 Covariate Balancing Propensity Score (CBPS)",
        "6.4 Energy Balancing",
        "6.5 Estimation After Weighting",
        "7. Propensity Score Methods in Detail",
        "7.1 Propensity Score Estimation",
        "7.2 Propensity Score Matching",
        "7.3 Propensity Score Weighting (IPW / IPTW)",
        "7.4 Propensity Score Stratification",
        "7.5 Trimming and Truncation",
        "7.6 Common Support Assessment",
        "8. Coarsened Exact Matching (CEM) in Depth",
        "8.1 How CEM Works",
        "8.2 Estimation After CEM",
        "9. Entropy Balancing",
        "9.1 Theory",
        "9.2 Implementation",
        "9.3 Checking Balance After Entropy Balancing",
        "10. Panel Data Matching with PanelMatch",
        "10.1 How PanelMatch Differs from Cross-Sectional Matching",
        "10.2 Balance Assessment for PanelMatch",
        "11. Sensitivity Analysis",
        "11.1 Rosenbaum Bounds",
        "11.2 Sensitivity Analysis with sensemakr",
        "12. Doubly Robust Estimation",
        "12.1 Motivation",
        "12.2 The Augmented IPW Estimator",
        "12.3 Implementation Strategies",
        "13. Propensity Score Weighting with PSweight",
        "13.1 Overlap Weights for Binary Treatment",
        "13.2 Treatment Effect Estimation and Trimming",
        "13.3 Multiple Treatments",
        "14. GBM-based Propensity Scores with twang",
        "14.1 Estimating Propensity Scores with GBM",
        "14.2 Balance Diagnostics",
        "14.3 Using GBM Weights for Outcome Analysis",
        "15. Optimal Matching with Constraints using designmatch",
        "15.1 Cardinality Matching",
        "15.2 Profile Matching with bmatch",
        "16. Matching with Clustered Data using CMatching",
        "16.1 Within-Cluster Propensity Score Matching",
        "16.2 Balance Assessment for Clustered Matching",
        "17. Matching with Multiple Imputation using MatchThem",
        "17.1 Matching Across Imputed Datasets",
        "17.2 Weighting Across Imputed Datasets",
        "18. CBPS: Covariate Balancing Propensity Score",
        "18.1 Basic CBPS Estimation",
        "18.2 Balance Diagnostics for CBPS",
        "19. Practical Guidelines",
        "19.1 Choosing a Matching Method",
        "19.2 Diagnostics Checklist",
        "19.3 Common Pitfalls",
        "19.4 Recommended Workflow",
        "20. Comprehensive Visualization Suite for Matching",
        "20.1 Data Setup with LaLonde",
        "20.2 Love Plot Using causalverse::love_plot()",
        "20.3 Distributional Plots Before and After Matching",
        "20.4 Propensity Score Distribution with Overlap Weights",
        "20.5 Caliper Sensitivity Plot (ATT vs. Caliper Width)",
        "20.6 Balance Improvement over Matching Ratio (1:1, 1:2, 1:3)",
        "21. Trimming and Overlap",
        "21.1 Crump et al. (2009) Optimal Trimming Rule",
        "21.2 Overlap Weights Comparison with IPW and Matching",
        "22. Sensitivity Analysis for Matching",
        "22.1 Rosenbaum Bounds (Gamma Sensitivity Analysis)",
        "22.2 E-Values for Matched Estimates",
        "22.3 Placebo Tests for Matching",
        "22.4 Comprehensive Sensitivity Summary Table",
        "23. References",
        "Genetic Matching (Sekhon 2011)",
        "Motivation: Going Beyond Propensity Score Weights",
        "Key Properties",
        "Comparison: Propensity Score Matching vs. Genetic Matching",
        "Coarsened Exact Matching (CEM): A Deep Dive",
        "The CEM Idea",
        "Sensitivity to Coarsening Choice",
        "Entropy Balancing (Hainmueller 2012)",
        "The Entropy Balancing Idea",
        "Higher-Order Entropy Balancing",
        "Matching Quality: Distribution Tests",
        "Beyond Mean Balance",
        "Energy Distance",
        "Variance Ratio Plot",
        "Additional References (Advanced Matching)"
      ],
      "created": "2026-03-18 18:59:58",
      "modified": "2026-08-12 19:22:27",
      "commits": 5
    },
    {
      "source": "j_sensitivity.Rmd",
      "filename": "j_sensitivity.html",
      "title": "Sensitivity Analysis and Robustness ",
      "author": "Mike Nguyen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Omitted Variable Bias: sensemakr",
        "Theory",
        "Implementation",
        "Contour Plots",
        "Extreme Scenarios",
        "Multiple Treatments",
        "Interpretation Guidelines",
        "When the Controls May Be Correlated with the Omitted Variable: regsensitivity",
        "Rosenbaum Bounds",
        "Implementation with rbounds",
        "Implementation with sensitivitymv",
        "Interpretation",
        "E-values",
        "Computing E-values",
        "E-values for Different Study Designs",
        "Visualization",
        "HonestDiD: Sensitivity for Parallel Trends",
        "Smoothness Restrictions",
        "Relative Magnitudes",
        "Placebo Tests",
        "Types of Placebo Tests",
        "Placebo Outcomes",
        "Placebo Treatments (In-Time Placebos for DID)",
        "Placebo Cutoffs for RD",
        "In-Space Placebos for Synthetic Control",
        "Specification Curve Analysis",
        "Building the Specification Space",
        "Bounds Approaches",
        "Lee Bounds",
        "Manual Lee Bounds",
        "Manski Bounds",
        "Multiple Testing Corrections",
        "Family-Wise Error Rate (FWER)",
        "False Discovery Rate (FDR)",
        "Romano-Wolf Step-Down",
        "Choosing a Correction",
        "Randomization Inference",
        "Manual Implementation",
        "ri2 Package",
        "RI for Clustered Designs",
        "When to Use Randomization Inference",
        "Bootstrap Methods",
        "Nonparametric Bootstrap",
        "Pairs Cluster Bootstrap",
        "Wild Cluster Bootstrap",
        "Wild Bootstrap with Few Clusters",
        "Choosing a Bootstrap Method",
        "KonFound-It Framework",
        "Treatment Effect Sensitivity with treatSens",
        "Tipping Point Analysis with tipr",
        "OVtool for Propensity Score Weighting",
        "Selection Model Sensitivity with causalsens",
        "Practical Guidelines",
        "Decision Framework",
        "Which Sensitivity Analysis for Which Method?",
        "Reporting Standards",
        "A Minimal Sensitivity Checklist",
        "Comprehensive Visualization Suite for Sensitivity Analysis",
        "A. Sensitivity Contour Plot for OVB (Omitted Variable Bias)",
        "B. E-Value Distribution Across Multiple Outcomes and Specifications",
        "C. Specification Curve with Color-Coded Decisions",
        "D. Breakdown Point Analysis Plot",
        "E. Calibration Plot: Sensitivity Relative to Known Confounders",
        "Partial Identification Bounds",
        "A. Manski (1990) Sharp Bounds for ATE Under No Assumptions",
        "B. Monotone Treatment Response (MTR) Bounds",
        "C. Monotone Treatment Selection (MTS) Bounds",
        "D. Bounds Comparison Visualization",
        "Quantile Treatment Effects and Distributional Analysis",
        "A. QTE Estimation (Difference in Quantile Functions)",
        "B. Stochastic Dominance Tests",
        "C. Distribution of Treatment Effects Visualization",
        "References",
        "Manski (1990) Partial Identification Bounds",
        "Why Partial Identification?",
        "No-Assumptions Bounds (Manski 1990)",
        "Monotone Treatment Response (MTR) Bounds",
        "Monotone Treatment Selection (MTS) Bounds",
        "MTR + MTS Combined Bounds",
        "Rosenbaum Sensitivity Analysis (Gamma Analysis)",
        "The Framework",
        "Interpreting the Sensitivity Threshold",
        "Partial R2 and Sensitivity Contours: Cinelli and Hazlett (2020)",
        "The sensemakr Framework",
        "Sensitivity Contour Plot",
        "Benchmark Against Observed Covariates",
        "Sensitivity Without sensemakr: Manual Omitted Variable Bias Calculation",
        "Putting It All Together: A Sensitivity Dashboard",
        "Additional References (Partial Identification and Sensitivity)"
      ],
      "created": "2026-03-18 18:59:58",
      "modified": "2026-11-25 03:36:03",
      "commits": 8
    }
  ],
  "_score": 6.363329878887161,
  "_indexed": true,
  "_nocasepkg": "causalverse",
  "_universes": [
    "mikenguyen13"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-12-02T08:39:07.000Z",
      "distro": "resolute",
      "commit": "6d5877de501924bffc2a32e0f8c410374fc24919",
      "fileid": "https://r2.ropensci.org/ccb0b008e83105d8163be29b68b3f2cfaa06f31329e95deae40d55a48704cd65",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mikenguyen13/actions/runs/46836608983"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-12-02T08:40:39.000Z",
      "distro": "resolute",
      "commit": "6d5877de501924bffc2a32e0f8c410374fc24919",
      "fileid": "https://r2.ropensci.org/57fe9b9ab053b8017e9907ef01ab534787be652193c6507e16ea7c4d8da13b49",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mikenguyen13/actions/runs/46836608983"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-12-02T08:38:50.000Z",
      "commit": "6d5877de501924bffc2a32e0f8c410374fc24919",
      "fileid": "https://r2.ropensci.org/1b6dc1069660f5a12432d8000e094e288e55edbb5312773486cfc8d0876f98ec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mikenguyen13/actions/runs/46836608983"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-12-02T08:38:58.000Z",
      "commit": "6d5877de501924bffc2a32e0f8c410374fc24919",
      "fileid": "https://r2.ropensci.org/6e4717706d9e8c6f2f96d95b87e954a21b05abff7640475883717b1514b60c1b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mikenguyen13/actions/runs/46836608983"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.0",
      "date": "2026-12-02T08:40:08.000Z",
      "commit": "6d5877de501924bffc2a32e0f8c410374fc24919",
      "fileid": "https://r2.ropensci.org/cbc786c8c46b190272d1d9d8b2ed2338d8ad7a850e9e9a4f86942b4ed76e43a6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mikenguyen13/actions/runs/46836608983"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-12-02T08:37:10.000Z",
      "commit": "6d5877de501924bffc2a32e0f8c410374fc24919",
      "fileid": "https://r2.ropensci.org/a95866d1752a5039a2b3bf4aeaea1e0b761347be1724e38432489db5c717f0cc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mikenguyen13/actions/runs/46836608983"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-12-02T08:37:33.000Z",
      "commit": "6d5877de501924bffc2a32e0f8c410374fc24919",
      "fileid": "https://r2.ropensci.org/12a4862abe817e52547ec5636512942a5fb8829730a80f9c87ab27d98ddeec5b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mikenguyen13/actions/runs/46836608983"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-12-02T08:38:08.000Z",
      "commit": "6d5877de501924bffc2a32e0f8c410374fc24919",
      "fileid": "https://r2.ropensci.org/568e7566412b86908253e44afb04b6b05f4f54ff380da9deeb9fb550923053f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mikenguyen13/actions/runs/46836608983"
    }
  ]
}