# Discipline Skeleton -- Secondary Data Analysis

**Library:** Public RAM. **Authored by:** Epistemic Output Layer (S4). **Consumed by:** S4 at Phase D overlay.

Use when the invoked Librarian discipline is `secondary-data-analysis`. This discipline extracts new insights from existing quantitative datasets through provenance interrogation and hypothesis testing. Attach the three-axis block per hypothesis-level or descriptive-statistic finding.

---

## Native Skeleton (preserve)

1. **Research Question and Hypotheses** -- pre-specified where possible; exploratory flagged as such.
2. **Dataset Provenance** -- origin, original purpose, sampling frame, collection dates, consent scope, known limitations.
3. **Variable Mapping** -- original variables, derived variables, transformations, missingness handling.
4. **Analytic Sample** -- inclusion/exclusion from the dataset; final N; any weights applied.
5. **Statistical Approach** -- models, assumptions, sensitivity analyses.
6. **Results** -- per hypothesis or per descriptive statistic.
7. **Limitations** -- inherent to repurposing an existing dataset: measurement mismatch, outdated frame, unobserved confounding.
8. **Implications.**

## Overlay Hooks

- Each **hypothesis-level finding** (causal or predictive) or **descriptive statistic** is a claim slot.
- Typical claim types: descriptive OR causal OR predictive (commonly mixed). Each with its own transportability slot per `FEATURE_SLOT_SUBSTITUTION.md`.
- Dataset provenance is an UPSTREAM integrity input; it is not the three-axis confidence.
- Surprise Register and Search Ledger render as top-level sections after Implications.
- Methodology trace: secondary-data-analysis tag, dataset identifier, analytic package + version, pre-registration ID if any.

## Native elements that MUST survive overlay
- Dataset provenance section (origin, purpose, limits).
- Variable mapping and missingness handling.
- Sensitivity analyses.

Secondary data analysis has a distinctive transportability concern: the dataset was collected for a different purpose. Transportability rationale should name the gap between original collection context and decision context explicitly.
