Logo van Panel Diagnostics

Panel Diagnostics

Community
isitcredible
panel-diagnostics

Diagnostics for panel designs without a discrete treatment event: unit and time dependence, serial-correlation-robust inference, fixed-effect structure sensitivity, balance and attrition, and group-level leave-outs. Invoke from `code-and-data` for panel variation that is not an adoption-event design.

Overzicht

Uitgeverisitcredible
Repositoryresearch_skills
Skillnaampanel-diagnostics
Sterren
40
Forks
6
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door isitcredible op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Panel Diagnostics in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/isitcredible/research_skills/tree/main/review/modules/panel-diagnostics
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/isitcredible/research_skills.git /tmp/research_skills
mkdir -p .claude/skills
cp -r /tmp/research_skills/review/modules/panel-diagnostics .claude/skills/panel-diagnostics
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Panel Diagnostics in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Panel Diagnostics automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Panel Diagnostics niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Panel diagnostics

Establish what variation actually identifies the coefficient once the fixed effects have taken their share, whether the error structure supports the reported precision, and which units supply the identification. A panel regression borrows its credibility from the fixed effects, and the fixed effects decide what variation is left — the estimate is only as good as the answer to "what varies, for whom, after all this is absorbed?"

Trigger: panel variation among the target results with no discrete treatment event — otherwise use did-event-study-diagnostics.

Method crib (source-audited): ../../references/methods/panel_methods_guide.md — multiway/nested clustering geometry, D-K, Pesaran CD→CCE/interactive-FE routing, Mundlak margin contrast, Nickell bias and AB diagnostics, G-H attenuation, Lee bounds. ../../references/methods/abadie_athey_imbens_wooldridge_2023_clustering.md — the whether-to-cluster frame this guide's how presumes: clustering is a design problem (two-stage sampling or cluster-level assignment), not a residual-correlation test. When the panel holds nearly all clusters (all states, all years), conventional clustered SEs are inflated by the missing finite-population correction only if effects are heterogeneous across clusters and assignment varies within them; with cluster-level assignment, cluster at the assignment level.

Core checks

  • Unit and time dependence — located, then remedied. Identify how errors correlate within units over time and across units within periods; cluster at the level the dependence lives, and report the cluster count. Then remedy by location: within-unit-over-time → unit clustering plus a persistence measurement (below); across-units-within-period → a Pesaran CD diagnostic first, then two-way clustering (Cameron–Gelbach–Miller) or Driscoll–Kraay (needs a long T, ≥ ~20–30) for common shocks uncorrelated with the regressor. If exposure to a common factor plausibly correlates with the regressor, the dependence biases the coefficient, not just the SE — run a CCE (Pesaran) or interactive-FE (Bai; needs both N and T large) specification and report the movement as a point-estimate finding. A single vce(cluster unit) answers only the first location.
  • Collapse test on the point estimate. Clustering repairs the standard error, not the coefficient. Where a regressor is constant within a coarser unit than its rows (an aggregate variable on micro units, coarse-resolution coding), distinguish the two cases before calling anything wrong: genuine rows with a coarse regressor — the estimand-preserving collapse (original weights/controls retained) typically reproduces the coefficient exactly, and equal-weight re-estimation is a named sensitivity with a different estimand, not a correction (but a large gap undercuts a common-effect claim, and with high residual intraclass correlation the equal-weight fit is the more precise one); versus donor-substituted/imputed copies, where drop-to-source IS the correction. See ../../references/design-matrix.md, "Collapse-test record".
  • Serial-correlation-robust inference. Measure the persistence first — residual and regressor AR within units — then report inference under at least one method whose validity does not ride on low persistence (block/ time-clustered bootstrap, or the time-aggregated / long-differences specification) beside the clustered baseline. If the corrected interval loses significance, route through the MDE machinery rather than reporting "no effect"; if no validated correction exists at this persistence, report "uninformative at this T/ρ," not a discounted pass.
  • Dynamics (lagged dependent variable). A within estimator with a lagged outcome carries Nickell bias — O(1/T), downward on the persistence coefficient, whatever N is. At short T, report it beside a difference- or system-GMM estimate whose output carries m1/m2, Sargan/Hansen and the (collapsed) instrument count; flag system GMM when the persistence coefficient is near 1.
  • Continuous treatment with no stayers (temperature, rainfall, prices: every unit's treatment changes each period). There is no untreated comparison, so TWFE imposes a linear, homogeneous effect; identification rests on quasi-stayers, units whose treatment barely moves (de Chaisemartin–D'Haultfœuille–Vazquez-Bare 2024, AEA P&P). Their nonparametric estimator converges at n^(2/5), not √n, and placebo pre-tests are weak; their parametric two-step estimator is √n. Report it beside the TWFE coefficient (in Deschênes–Greenstone's 1997–2002 county data, −0.024, s.e. 0.007, becomes −0.018, s.e. 0.011).
  • Fixed-effect structure sensitivity — adjudicate the margin. Re- estimate across defensible FE structures (unit, time, unit and time, region-by-period where the claim allows it) and report the coefficient path across them. Before reading the path, state which variation margin the claim requires — within-unit change, between-unit levels, or within-region-period — with the reason; estimates on other margins are rebuttals of the paper's framing, not verdicts on the claim. Run the Mundlak / correlated-random-effects between-vs-within contrast: disagreement between the margins is itself a finding (they answer different questions), so name which one the paper's prose invokes. And check the attenuation direction: where the regressor is smooth, interpolated, or constructed, report its within-vs-total variance share and the between estimate beside the within — if the within-variation is mostly noise, the FE estimate is the attenuated one and the usual credibility ordering inverts (Griliches–Hausman). A result that exists only under one FE structure is a finding about that structure. State what identifying variation remains under each — a two-way FE estimate identified off three switching units is a small-N design wearing a large-N panel's clothes; hand that to small-n-diagnostics.
  • Balance, attrition, and timing paths. Who enters and exits the panel, and whether entry and exit correlate with the regressor of interest and with the outcome. Outcome-correlated or post-treatment exit is selection — report it, and bound or reweight where feasible (Lee bounds need a randomly or as-if randomly assigned binary treatment and monotone selection, and bound the effect for the always-observed; IPW). Only where neither is feasible — say why — quote the within estimate with the exit pattern stated.
  • Unit and group leave-outs. Leave out each unit and each natural group (region, industry, cohort); report the full coefficient range.

Report back

Lead with what each check found and what it costs the claim, not a row for every check. Still account for coverage: say what you ran, what was NOT_APPLICABLE and why, and what was blocked (exact file, command, error). Record the what-variation-identifies-this answer in the module report's ## Leads for later stages (folded into the code-and-data report) for claims: the FE structure defines the comparison the story is allowed to claim, and a story told about levels when the estimate is within-unit change is a framing gap.

Veelgestelde vragen

Wat doet de AI-skill Panel Diagnostics?

Diagnostics for panel designs without a discrete treatment event: unit and time dependence, serial-correlation-robust inference, fixed-effect structure sensitivity, balance and attrition, and group-level leave-outs. Invoke from `code-and-data` for panel variation that is not an adoption-event design.

Waarom Panel Diagnostics gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Panel Diagnostics bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Panel Diagnostics in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/isitcredible/research_skills/tree/main/review/modules/panel-diagnostics. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Panel Diagnostics gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Panel Diagnostics gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Panel Diagnostics ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Panel Diagnostics gratis?

Ja. Deze skill is door isitcredible op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇