Cross Sectional Diagnosticsのロゴ

Cross Sectional Diagnostics

コミュニティ
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.

概要

公開者isitcredible
リポジトリresearch_skills
スキル名cross-sectional-diagnostics
スター
40
フォーク
6
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    isitcredibleがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Cross Sectional Diagnostics」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/isitcredible/research_skills/tree/main/review/modules/cross-sectional-diagnostics
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでCross Sectional Diagnosticsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にCross Sectional Diagnosticsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Cross Sectional Diagnosticsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「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.

TypingMindでCross Sectional Diagnosticsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Cross Sectional Diagnosticsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにCross Sectional Diagnosticsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/isitcredible/research_skills/tree/main/review/modules/cross-sectional-diagnosticsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Cross Sectional Diagnosticsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Cross Sectional Diagnosticsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもCross Sectional Diagnosticsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Cross Sectional Diagnostics」は無料ですか?

はい。isitcredibleがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇