Worked Examples
Validate scientifically missing follow-up data — Catalyst Grit
Scientifically validate missing follow-up data in Catalyst Grit using real longitudinal behavioral observations, reproducible Python analysis, and psychometric research standards. This guide demonstrates attrition bias, missing-data mechanisms, sensitivity analysis, measurement validity, privacy-preserving engineering controls, and source-reviewed implementation requirements for defensible psychological research.
Application: Catalyst Grit
Article type: Scientific validation / longitudinal psychology / psychometrics / engineering
Last source-reviewed version: Catalyst Grit v2.0.0 (GitHub commit f9617160ffd276c6a6fd847b1e846bb5f73b07ae)
Last verified installed version: Not established
Editorial status: Verification pending
Estimated reading time: 25–32 minutes
1. Goal
Determine whether the handling of missing follow-up observations supports a scientifically defensible statement about change over time. The primary quality criterion is transparent attrition patterns, plausible mechanisms of missingness, and bias-sensitive interpretation. Calculation correctness alone is insufficient; the psychological outcome must also be valid, reliable, comparable across waves and appropriate to the research question.
Study question: How much could selectively missing later observations distort the observed average trajectory? This question is distinct from whether an intervention caused recovery, whether a scale measures grit, or whether an individual has high resilience.
2. Requirements and design
- Specify the research population, recruitment frame, eligibility and the estimand (all enrolled, those eligible at a wave, observed responders, or a treatment-policy effect).
- Document nominal wave dates, permissible windows, measurement mode, participant-level eligibility, instrument versions and predefined analysis plan.
- Establish consent and lawful privacy safeguards; remove direct identifiers from analytical exports and separate contact records from research data.
- Preserve item-level observations, missingness reasons when available, raw responses, scoring keys, revisions and baseline covariates.
- Specify who may access raw, pseudonymized and public aggregate records; do not treat absent responses as noncompliance, inability or low grit.
- Identify the intended scientific and technical reviewers before releasing interpreted results.
3. Definitions that must not be conflated
| Category | Research meaning | Engineering representation |
|---|---|---|
| Wave nonresponse | Eligible participant does not provide an entire follow-up | Missing wave with status, eligibility and contact/withdrawal provenance |
| Item nonresponse | Some responses missing in a returned measure | Null item data, not silently zero or mean-substituted |
| Intermittent nonresponse | Observation missing then returns | Preserve later wave; avoid permanent dropout inference |
| Monotone missingness | No observed values after first absent wave | Pattern definition; not proof of actual withdrawal |
| MCAR | Response independent of observed and missing outcomes | Assumption, never asserted as a verified status |
| MAR | Conditional on measured predictors, response independent of missing outcome | Model-dependent assumption, not directly provable |
| MNAR | Response depends on unobserved value after conditioning | Sensitivity scenarios or explicit joint/selection models |
For longitudinal psychology, missingness may arise from study burden, technical failure, withdrawal, access barriers, changes in health or circumstances, or the unobserved psychological state itself. These possibilities cannot be resolved merely by computing a response-rate percentage.
4. Real behavioral dataset and explicitly simulated nonresponse
The R lme4::sleepstudy dataset contains reaction-time (milliseconds) measurements from 18 people across Days 0–9 (180 subject–day observations). The upstream source links these data to the sleep-restriction study described by Belenky and colleagues. Reaction time is a behavioral cognitive-performance outcome, not a validated resilience or grit instrument. The published dataset used here has all 180 specified cells observed. For teaching, the companion package masks Days 7–9 for the six participants with the largest Day 0 reaction times. This deliberately creates 18 missing cells and a selection mechanism based on an observed baseline covariate. It is not real attrition.
| Quantity | Result | Interpretation |
|---|---|---|
| Published source | 180 observed measurements | 18 participants × 10 days |
| Artificial missingness | 18 masked cells | Six participants × three days |
| Day 9 observed denominator | 12 of 18 (66.7%) | Six artificially absent |
| Full-data Day 9 mean | 350.85 ms | Available here only because original complete data are retained |
| Masked observed-only Day 9 mean | 336.06 ms | Observed-case result under the exercise |
| Selection difference | -14.79 ms | Observed-only minus full; a simulated bias demonstration |
| Masked-vs-retained baseline mean difference | +51.81 ms | Selection is related to the observed Day 0 outcome |
The artificial selection lowers the Day 9 observed mean by approximately 14.79 ms. In actual field studies the full-data Day 9 mean generally cannot be calculated because missing outcomes are unknown. The result does not establish that real sleep-study participants were missing, nor does it establish a treatment effect.
5. Procedure
- Lock the estimand and protocol: Define the population whose outcomes matter, the follow-up windows, interpretation rules and assessment purpose before choosing an estimator.
- Build an eligibility-by-wave ledger: Reconcile enrolled, eligible, contacted, observed, partly completed, withdrawn and unknown for each wave. Do not alter the denominator to remove inconvenient cases.
- Verify data lineage: Confirm pseudonymous participant key, wave ID, instrument revision, observation status, source hash, event timestamp and data-processing revision.
- Characterize missingness: Plot response completeness across waves and strata; compare baseline characteristics among observed and missing participants; examine intermittent versus monotone absence.
- Review psychometrics: Confirm content validity, scoring requirements, item-level missing rules, reliability and longitudinal measurement invariance for the actual scale. Do not substitute a dashboard condition score for validated grit.
- Fit scientifically justified primary models: Choose likelihood-based longitudinal models or multiple imputation only when their covariates, dependencies, estimand and MAR assumptions are defensible. Track convergence and uncertainty; avoid single-value mean imputation.
- Conduct MNAR sensitivity: Specify plausible shifts in unobserved outcomes (pattern-mixture delta adjustments or another prespecified method). Report how conclusions change rather than selecting the most favorable scenario.
- Perform an independent review: Reproduce calculations and evaluate study design, missingness mechanisms, effect direction, confounders, attrition reporting and potential selection bias.
- Preserve human approval boundaries: Record analytical release status separately from software save success, source ingestion, reviewer sign-off, and permission for publication.
6. Sensitivity analysis: how much do missing outcomes matter?
A transparent, deliberately simple pattern-mixture exercise can expose assumption dependence without claiming to estimate an unknown dropout mechanism. Let the expected mean reaction time for missing Day 9 outcomes equal the observed Day 9 mean plus a specified delta. With 12 observed and six missing participants, the all-participant scenario mean is (12 × observed_mean + 6 × (observed_mean + delta)) / 18.
| Assumed missing-versus-observed difference | Scenario mean on Day 9 | Purpose |
|---|---|---|
| -40.00 ms | 322.73 ms | Sensitivity scenario, not observed estimate |
| +0.00 ms | 336.06 ms | Sensitivity scenario, not observed estimate |
| +20.00 ms | 342.73 ms | Sensitivity scenario, not observed estimate |
| +40.00 ms | 349.40 ms | Sensitivity scenario, not observed estimate |
| +44.37 ms | 350.85 ms | Reproduces known full mean (demonstration only) |
| +60.00 ms | 356.06 ms | Sensitivity scenario, not observed estimate |
| +80.00 ms | 362.73 ms | Sensitivity scenario, not observed estimate |
Here a delta of approximately +44.37 ms recovers the full-data mean of 350.85 ms, because this teaching dataset retains the underlying values. In real applications, the true delta is unknown. The range should be justified by prior science and subject-matter knowledge, not selected after inspecting significance. These scenarios are not a substitute for multiple imputation or multilevel-model uncertainty estimation.
7. Psychometric review and interpretation boundaries
| Question | Minimum scientific evidence | Failure condition |
|---|---|---|
| Is the construct defined? | Clear psychological theory and target population | “Resilience” used as an undefined synonym for dashboard recovery |
| Is the instrument justified? | Validated scale and documented licensing/scoring | Unknown or changed scoring procedure |
| Do scores mean the same thing at each wave? | Evidence of longitudinal measurement invariance or appropriately qualified comparison | Unreviewed mode/language/item changes |
| Are item responses missing? | Item-level frequency and authorized scoring rules | Silent zero fill, averaging without permitted rules |
| Are change scores reliable? | Reliability/precision, range and floor/ceiling effects | Observed change treated as clinically meaningful without validation |
| Are differences causal? | Credible design and confounder assessment | Before-after description relabeled as an intervention effect |
Catalyst Grit v2.0.0 describes a governed human-systems recovery-condition workflow. Its monitoring documentation requires two snapshots for a directional trend and preserves immutable source traces; neither behavior demonstrates construct validity for psychometric grit. A platform record can be reproducible and still fail to measure the intended psychological construct.
8. Engineering data contract and reproducibility
Use the following proposed validation record as an integration design pattern, not as an existing Catalyst Grit API payload or JSON schema:
{
"study_id": "study-example",
"participant_key": "pseudonymous-001",
"wave_id": "day-09",
"eligibility": "eligible",
"response_status": "missing",
"missingness_reason": "unknown",
"instrument_id": "instrument-version-pinned",
"observation_value": null,
"source_version": "sha256:example-only",
"review_state": "draft",
"provenance": {
"received_at": "2026-01-01T12:00:00Z",
"data_origin": "research-system"
}
}
Recommended validation invariants: unique participant × scheduled wave × instrument version keys; missing values remain null; withdrawal and eligibility are distinct; source snapshots are immutable; an amendment preserves earlier versions; authorization is checked on every operation; and public exports cannot contain participant-level records.
9. Repository implementation evidence and limits
| Source reference | What the reviewed material supports | What remains unverified |
|---|---|---|
| Monitoring and trends | Immutable monitoring snapshots; no inferred trend from one snapshot | No validated missing-data inferential method evidenced |
| Methodology profile | Recovery-condition scores and evidence traces | Psychometric validity of grit not established |
| Persistent workspace | Revision history, audit records and retention controls described | Actual production governance and permission enforcement |
| WordPress private workspace | Private authenticated workspace, separate from public demonstration | Deployed WordPress behavior |
| SQLite workspace source | Repository persistence and revision code exists | No evidence it automatically implements a research participant-wave missingness model |
| Monitoring tests | Snapshot and privacy threshold checks in repository tests | Not a test of missing-data bias or scale invariance |
| Canonical record schema | Versioned canonical recovery record schema | Not a validated psychometric longitudinal panel schema |
Code referenced above is pinned to GitHub commit f9617160ffd276c6a6fd847b1e846bb5f73b07ae. The source-reviewed documentation is not evidence that the site has deployed that commit or that its REST handlers enforce every intended research policy.
10. Verification and acceptance criteria
| Validation layer | Pass criteria | State here |
|---|---|---|
| Provenance | Actual observations reproducible, upstream dataset linked, checksum provided | Offline example checked; upstream bit-for-bit comparison pending |
| Panel integrity | 18 subjects × 10 unique participant-days; no genuine source missingness | Offline checks |
| Mask separation | Exactly 18 artificial missing cells, genuine values untouched | Offline checks |
| Attrition reporting | Day 9 eligible N=18, available N=12, response=66.7% | Offline checks |
| Sensitivity | Explicit deltas; no unsupported MAR/MNAR classification | Offline checks |
| Psychometrics | Independent evaluation of chosen clinical/psychological instrument | NOT RUN |
| Human research ethics | Protocol, permissions and consent for real participant study | NOT RUN |
| Deployed access control | Cross-account denial, no public individual export, approved deletion | NOT RUN |
| Product verification | Actual installed version and code routes confirmed | NOT RUN |
| Scientific acceptance | Independent psychological/statistical reviewer approval | NOT RUN |
11. Failure modes and safeguards
- False retention: a participant lost eligibility is counted as an ordinary nonresponder. Keep eligibility and response status separate.
- Silent score inflation: missing items are filled with zero or the scale mean without the licensed scoring protocol. Reject unsupported score derivation.
- Hidden device or language change: mode effects alter the meaning of scores across waves. Document and assess measurement invariance.
- Model overclaim: an MAR-based result is reported as assumption-free. Require assumption statements and MNAR sensitivity.
- Confidentiality breach: participant-level values appear in a public export or error log. Apply least privilege, safe error handling, aggregation review and incident response.
- Historical overwrite: recalculation replaces original records or automatically approves a draft. Preserve immutable history and explicit reviewer decisions.
12. Reproducible developer checks
The downloadable package includes data/sleepstudy_original.csv, data/synthetic_missingness_overlay.csv, the Python validator code/validate_followup_scientifically.py, source checksums and a unittest suite. From the unpacked folder run:
python3 code/validate_followup_scientifically.py
python3 -m unittest discover -s tests -v
The code validates participant-wave uniqueness, unchanged observed values, explicit mask provenance, nonfinite values and the published-data baseline. It calculates observed-only and full-data means and provides transparent sensitivity scenarios. It does not fit or certify a clinical model, perform formal scale invariance testing or call production Catalyst Grit APIs.
13. Scientific references
- lme4: sleepstudy dataset description (reaction time measured across a sleep-restriction study).
- Published sleepstudy CSV distributed through Rdatasets (180 observational records).
- National Research Council (2010), The Prevention and Treatment of Missing Data in Clinical Trials (missingness prevention and sensitivity).
- Missing data methods in longitudinal studies: a review (longitudinal assumptions and approaches).
- COSMIN guideline for systematic reviews of patient-reported outcome measures (measurement properties and comparability).
- COSMIN reporting guideline for measurement-property studies, version 2.0 (research reporting).
14. Reporting boundary
A defensible report explicitly states who was eligible, who responded, the missing-data mechanism assumptions, the model and sensitivity scenarios, any incomplete or revised observations, and remaining threats to inference. Specify whether the outcome is behavioral reaction time, a licensed self-report scale, or a nonclinical recovery-condition signal. No imputation algorithm can establish the validity of a psychological construct or recover a missing causal counterfactual by itself. Distinguish publication permission from statistical validity; document conflicts of interest, ethics approval and the limits of individual-level interpretation.
15. Final quality check
This example meets its limited purpose when the unchanged published source and artificial mask are independently reproducible, selected-wave denominators are displayed, alternative missing-outcome assumptions produce transparent changes, and users do not infer a trait or treatment benefit from the result. For a real Catalyst Grit study, scientific acceptance additionally requires instrument-specific psychometric evidence, approval of the planned estimand and missing-data methodology, participant privacy review, and deployed software staging verification.
