szl-clustered-replication
Audit paired model, assay or pipeline losses when many observations belong to a few independent donors, plates, sites or training runs. Report observational versus experimental counts, equal-cluster effects, a conditional exact cluster sign-flip test and leave-one-cluster sensitivity. Use for pseudoreplication or a result that may depend on one experimental unit.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- szl-clustered-replication
- license
- Apache-2.0
- description
- Audit paired model, assay or pipeline losses when many observations belong to a few independent donors, plates, sites or training runs. Report observational versus experimental counts, equal-cluster effects, a conditional exact cluster sign-flip test and leave-one-cluster sensitivity. Use for pseudoreplication or a result that may depend on one experimental unit.
02 资源文件 5
- 资产文件assets/example.json3.0 KB
- 资产文件assets/fixture-lock.json189 B
- 脚本kernel.py12.4 KB
- 参考文档references/contract.md4.9 KB
- 脚本scripts/run.py1.5 KB
03 SKILL.md 正文
Clustered replication
An experiment with 60 measurements from three donors has 60 observations, but only three declared experimental units. Counting the measurements as independent can overstate evidence. This skill checks a complete paired-loss table, averages within each declared unit, then gives each unit equal weight. It keeps observational and experimental counts separate.
Read references/contract.md when preparing a table. Save the expected plan digest separately
before examining the outcomes. The helper checks that commitment; it cannot verify its date
or authenticity. Missing commitment or undeclared independence/sign-flip assumptions produce
DESCRIPTIVE_ONLY with no p value.
Run the intentionally sensitive synthetic example without a commitment:
python scripts/run.py assets/example.json
It retains twelve observations in three donor clusters, reports the donor-weighted and
row-weighted effects, and identifies the donor whose removal reverses the positive effect.
For the separately retained fixture commitment, copy the plan_sha256 from
assets/fixture-lock.json into the --expected-plan-sha256 argument. A conditional result
is a completed calculation, not acceptance of the experiment or its conclusion.
For each result, report the number and meaning of experimental units, the within-unit averaging, the declared sign-flip basis, the conditional p value when available, and all leave-one-unit findings. Sensitivity checks are descriptive; they are not additional independent replications or a reason to remove a donor. Keep the complete table and disclose missing observations.
Boundaries and services
The helper uses Python 3.9+ standard library, reads one explicit local JSON file, writes JSON to standard output, and never runs models, supplied code, providers or network requests. No credentials are required. It does not prove independence, randomization, symmetry, authentic preregistration, scientific truth, clinical suitability or production readiness. It supports complete paired scalar losses, one declared unit, 1–16 clusters and at most 10,000 rows; nested crossed designs, covariates, informative missingness and mixed units need another analysis.
The methodological sources linked in references/contract.md are documentation only. Opening
those links contacts journals.plos.org or pmc.ncbi.nlm.nih.gov; this skill sends no research
input to those services and does not download those pages.
04 同仓库更多 Skills
szl-unit-invariants
Checks declared SI dimensions, allowlisted unit conversions, expected ranges and fixed pointwise invariants (equal, sum, difference, product, ratio) over selected measurement or simulation columns, flagging incompatible quantities, scale errors of 1000x and broken conservation checks. Use when merging instrument exports with different units, validating simulation output against conservation laws, or when a reviewer asks how unit errors were ruled out. Not an uncertainty-propagation or symbolic tool.
szl-uncertainty-lineage
Propagate declared measurement uncertainty through a small arithmetic dependency graph using a first-order delta approximation. Use when a researcher needs to see how corrected inputs or shared-source correlation change a reported standard uncertainty; require unit checks separately.
szl-typesafe-ai
TypeSafe/Jev: Choice/Noul/Score in code, not TypeScript types. System One models turn natural language and application state into probabilities that software can compose. Use when building routing, ranking, extraction, verification, or replacing an LLM prompt-and-parse step with structured decisions; also when brainstorming what TypeSafe could make possible. Do not use for TypeScript/Java/Rust static types, Zod/Pydantic/mypy/JSON Schema/protobuf codegen, or asking whether a pipeline is type-safe. At SZL, Jev is an optional second reader only.
demo
暂无简介
demo
暂无简介
szl-skill-update-review
Compare pinned local skill packages using inventories and a retained lock; report changed skills, files, declarations and reruns without approving safety or validity.