Cross Sectional Diagnostics logo

Cross Sectional Diagnostics

Community
isitcredible
cross-sectional-diagnostics

Diagnostics for cross-sectional observational designs: functional form, common support, influence and leave-region-out, dependence structure including geography, negative controls, and omitted-variable-bias robustness values benchmarked against named covariates. Invoke from `code-and-data` for cross-sectional claims resting on a control set.

Overview

Publisherisitcredible
Repositoryresearch_skills
Skill namecross-sectional-diagnostics
Stars
40
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by isitcredible on GitHub. Read the source before you install it.

Installation

Install the Cross Sectional Diagnostics AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/isitcredible/research_skills/tree/main/review/modules/cross-sectional-diagnostics
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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/cross-sectional-diagnostics .claude/skills/cross-sectional-diagnostics
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cross Sectional Diagnostics in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cross Sectional Diagnostics on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cross Sectional Diagnostics is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Cross-sectional diagnostics

Measure how much the claim depends on choices the reader cannot see — which controls, which functional form, which observations, which error structure — and how much unobserved confounding it could absorb. A cross-sectional regression with controls is the weakest design in the battery, so audit it on the evidence's terms, not the paper's: the control set is itself a claim to be tested, not a given.

Trigger: a cross-sectional observational claim among the target results. NOT_APPLICABLE for results whose identification another module covers; OLS columns the claim leans on stay in scope.

Core checks

  • Functional form and common support. Re-estimate under defensible alternative forms; check that treated and untreated observations overlap in covariate space, and report where the estimate comes from extrapolation. When support fails, route the answer: re-estimate on the supported region (trim or re-weight) and report whether the estimate survives on common support; an estimate carried by extrapolation is labelled descriptive, not verdict-bearing. Where a claim rests on an imposed shape (linearity, monotonicity), test it rather than eyeball a scatter: binstest (binscatter) formally rejects or clears the parametric form, and nprobust/lpdensity give a nonparametric conditional-mean or density alternative with valid inference — see the battery's software examples.
  • Influence and leave-region/group-out. Cross-country and cross-region regressions are routinely carried by a continent or a handful of observations; report the full leave-out range. Leverage is a property of the functional form, not of the observation: reproduce the exact published column first, then run DFBETA/influence on that spec — the influential tail can sit at opposite ends under levels versus logs, and a "leverage" unit whose deletion strengthens the authors is a fragility story that self-destructs. Check the sign of b_full − b_drop before pitching the finding.
  • Dependence structure, including geography. Neighbors resemble neighbors; unit-level robust errors on spatially smooth data fake precision. The gate has two tiers: for every spatially exposed result the SE-side record is Conley and Müller–Watson SCPC — a non-smooth regressor does not exempt it, because spatially correlated errors fake precision either way. When the regressor is smooth or interpolated over space, add the coefficient-side and noise rows: a spatial-lag/SLX refit, the Kelly matched-noise placebo, and Conley–Kelly–Kozbur pre-whitening — the "full spatial record" is all five rows. Conley only repairs the standard errors; SLX/SAR test whether the point estimate is spillover-inflated (in gap audits it has halved the own-unit coefficient while inference held). An SE-only pass that reports "spatial dependence doesn't overturn it" can hide a magnitude twice the honest value. In Stata, scpc aborts with e(V_modelbased) missing whenever the preceding regression omitted robust or cluster() (e(V_modelbased) is only stored under a sandwich VCE): never log e(V_modelbased) missing as "package failed / unavailable" — refit the levels regression with robust/cluster() and run scpc, and alongside it (or if levels SCPC fails on high-dimensional controls) run contrast-space SCPC (C-SCPC, the $h \to \infty$ benchmark) by applying scpc to the LBM-GLS transformed model from spurtransform (or in R via spuR::spur / scpcR::scpc). The audited space–time protocol behind the spatial record is ../../references/methods/spurious_space_time_unified_guide.md.
  • Collapse test on the point estimate. A cross-country or cross-region regressor is often one coarse value spread across many finer rows (a regional figure assigned to each country, a donor-substituted or interpolated value). Clustering the standard error does not touch the coefficient; collapse to the genuine independent units — average, or drop-to-source for donor/imputed values — and report whether the estimate moves. See ../../references/design-matrix.md, "Collapse-test record".
  • Transparent covariate sensitivity. Report how the estimate moves across the defensible control sets — not the paper's preferred ladder only, and with shrinkage distinguished from standard-error inflation when a control "kills" the result (see controls-samples-diagnostics when horse races or mediators are in play).
  • Negative controls where substantively justified: an outcome or exposure the mechanism cannot touch, run in the same design.

Conditional checks

  • Omitted-variable-bias robustness value — when the causal claim rests on the control set. Compute the robustness value and the treatment's partial R², and benchmark against named observed covariates: the multiple of a named covariate's strength an unobserved confounder would need to overturn the claim (sensemakr implements this; the OVB-sensitivity record in the battery's ../../references/design-matrix.md lists the fields). A robustness value near what a single named covariate already explains is a different finding from one no plausible confounder could reach — report which. The robustness value is NOT a verdict; it quantifies what the claim can absorb, not whether confounding exists.

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 selection-on-observables verdict and any geography-carries-it finding in the module report's ## Leads for later stages (folded into the code-and-data report) for claims — a cross-sectional contrast that is really a between-continent contrast is a story finding as much as a statistical one.

Frequently asked questions

What does the Cross Sectional Diagnostics AI skill do?

Diagnostics for cross-sectional observational designs: functional form, common support, influence and leave-region-out, dependence structure including geography, negative controls, and omitted-variable-bias robustness values benchmarked against named covariates. Invoke from `code-and-data` for cross-sectional claims resting on a control set.

Why use Cross Sectional Diagnostics on TypingMind?

Because you install it once and use it with any model. Cross Sectional Diagnostics is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cross Sectional Diagnostics in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/isitcredible/research_skills/tree/main/review/modules/cross-sectional-diagnostics. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cross Sectional Diagnostics?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cross Sectional Diagnostics?

As many as you like. As long as a model supports skills, you can use Cross Sectional Diagnostics with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cross Sectional Diagnostics AI skill free?

Yes. It is published on GitHub by isitcredible under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇