Worked Examples

Developer reference for missing follow-up data — Catalyst Grit

Developer reference for missing follow-up data — Catalyst Grit Application: Catalyst Grit Status: Substantive initial guide; implementation and exact controls not yet certified. Intended behavior The Catalyst Grit implementation m

ProductCatalyst GritComponentLongitudinal Research, MonitoringUpdatedDecember 1, 2026Reading time1 minutes

Application: Catalyst Grit
Article type: Developer reference / longitudinal psychological research / psychometrics
Last source-reviewed version: v2.0.0 (commit f9617160ffd276c6a6fd847b1e846bb5f73b07ae)
Last verified installed version: Not established
Editorial status: Verification pending
Estimated reading time: 25–35 minutes

1. Goal

Provide a reproducible engineering reference for collecting, classifying, analysing and safely reporting missing longitudinal follow-up observations in psychological or human-systems research. The acceptance criterion is that eligible denominators, missingness patterns, likely sources of selection bias, model assumptions, analysis versions and reviewer decisions are disclosed. Correct software behavior is necessary but insufficient for psychological or psychometric validity.

This document is a reference implementation and design guide; it is not a claim that Catalyst Grit has a built-in participant-wave research database, missing-data imputation API, clinical outcome model, or validated grit scale.

2. Scope, research design and prerequisites

  1. Specify population, recruitment strategy, eligibility, planned follow-up windows, primary estimand and intended comparison.
  2. Predefine participant and visit identifiers; distinguish visit-level nonresponse, item-level missingness, participant withdrawal, and ineligibility.
  3. Identify instrument and scoring version, language, mode, licensing, construct validity and measurement invariance evidence.
  4. Confirm ethics approval, consent or other lawful processing basis, purpose limitation, retention, withdrawal handling, and access control.
  5. Pre-register or version analysis plans; separate planned analyses from post-hoc explorations.
  6. Record all source revisions, exclusions, sampling frames, permissions and disclosure limitations.

Longitudinal inference should describe the target population (all enrolled, all eligible, observed cases, or another estimand). An observed-only mean is a property of responders, not automatically the full intended population.

3. Missingness and psychometric contract

Condition Research interpretation Implementation rule
Eligible, observed Valid follow-up value available Preserve original item response and scored version
Eligible, not observed Wave nonresponse or item omission Use null and explicit status; never substitute zero
Withdrawn / ineligible Distinct from eligible nonresponse Separate eligibility and reason fields
Intermittent return Missing at one wave, seen later Do not infer permanent attrition
MCAR / MAR / MNAR Different identifying assumptions Annotate assumptions, not observed ground truth
Changed instrument Potential loss of longitudinal comparability Version scoring rules and flag invariance review
Revised observation Corrected evidence with historical trace Append revision, preserve prior source hash

Reliability at one occasion does not establish stability of item parameters or construct meaning across time. For multi-item grit or resilience scales, an independent psychometric reviewer should assess longitudinal measurement invariance, differential item functioning where relevant, measurement error and scoring assumptions before interpreting latent change.

4. Real-data validation fixture: published sleep restriction observations

The published lme4::sleepstudy dataset contains 180 reaction-time observations from 18 participants measured on Days 0–9. Its cognitive-performance outcome is not a measurement of grit or resilience. The source dataset used in this package has complete scheduled observations; a second CSV deliberately masks 18 cells for six participants on Days 7–9. This is simulated nonresponse, not real participant withdrawal.

Day 9 diagnostic Value
Eligible participants 18
Observed after synthetic masking 12
Response rate 66.7%
Complete-source mean reaction time 350.85 ms
Observed-only mean after masking 336.06 ms
Selection difference -14.79 ms

The difference arises because an artificial mask hides observed values. It is not a causal treatment effect or empirical dropout estimate. Source: lme4 dataset documentation and upstream Rdatasets CSV.

5. Procedure

  1. Pin the environment and study design: record the installed and source-reviewed versions separately; preserve a protocol and a documented participant-wave schedule.
  2. Preserve source evidence: store a read-only data snapshot with SHA-256 hash and immutable participant-wave keys.
  3. Validate every wave: check duplicates, eligible counts, response status, instrument version, nonfinite values, and timestamp windows.
  4. Profile missingness: report wave-level retention and baseline-variable differences between observed and absent participants.
  5. Assess psychometrics: check scoring keys, instrument permission, reliability, measurement invariance and meaning of the construct.
  6. Fit approved models: where justified, compare observed-only analyses with mixed models, multiple imputation, inverse probability weighting or other pre-specified methods; document the identifying assumptions.
  7. Run sensitivity analysis: vary plausible missing outcomes (pattern-mixture delta or another scientifically justified approach), and report how conclusions change.
  8. Review publication risk: require privacy clearance and independent analysis review before publishing aggregate findings; participant-level records remain private.
  9. Preserve decisions: append reviewer decisions and output hashes; never overwrite historical source or automatically approve a draft.

The executable commands below exercise only the packaged research adapter. They are not installed Catalyst Grit CLI commands.

6. Terminal: reproduce the published-data diagnostic

# Extract the package and enter its directory
python3 --version
python3 code/developer_followup.py audit
python3 code/developer_followup.py sensitivity --delta 40
python3 -m unittest discover -s tests -v

# Inspect provenance of the source and simulated overlay
shasum -a 256 data/sleepstudy_original.csv data/synthetic_missingness_overlay.csv

Python 3 and the standard library are sufficient for the diagnostic commands and bundled tests; no private server credentials are required. The source data and synthetic mask remain separate files, and the CLI emits only aggregate results and source digests.

7. Terminal: inspect source-reviewed Catalyst Grit implementation

git clone https://github.com/Content-Catalyst-LLC/catalyst-grit.git
cd catalyst-grit
git checkout f9617160ffd276c6a6fd847b1e846bb5f73b07ae
python3 scripts/release_contract.py

# Run existing monitoring tests after installing the repository's test dependencies
python3 -m pytest tests/test_monitoring_trends.py -q

The first script is documented by the repository’s README. The pytest command requires the repository’s test environment and dependencies and is independent of the research-adapter tests. It checks repository monitoring contracts, not psychometric missing-data estimators or a deployed WordPress installation.

8. Python analysis integration and optional model

# Research adapter API (local only)
import sys
sys.path.insert(0, "code")
from developer_followup import audit, sensitivity
summary = audit()
scenario = sensitivity(delta=40)
print(summary['day9_retention'], scenario['scenario_mean_ms'])
# Optional mixed-effects example (requires pandas + statsmodels)
# python3 -m pip install pandas statsmodels
import pandas as pd
import statsmodels.formula.api as smf
panel = pd.read_csv("data/synthetic_missingness_overlay.csv")
panel["Reaction"] = pd.to_numeric(panel["Reaction"], errors="coerce")
observed = panel.dropna(subset=["Reaction"])
fit = smf.mixedlm("Reaction ~ Days", observed,
                  groups=observed["Subject"], re_formula="~Days").fit()
print(fit.summary())

The optional mixed model is illustrative, not a validated model-selection decision. It generally relies on assumptions about missingness conditional on the model and observed information; it cannot establish MNAR absence, instrument validity, or causal impact. Check convergence and sensitivity before drawing conclusions. The Python code in this section is not a Catalyst Grit domain engine function.

9. Reference data contract and access boundaries

{
  "project_id": "study-demo",
  "participant_key": "synthetic-001",
  "wave_id": "day-09",
  "eligible": true,
  "response_status": "missing",
  "observed_value": null,
  "instrument_version": "example-version-1",
  "missingness_reason": "unknown",
  "source_revision": 1,
  "source_sha256": "sha256:example",
  "consent_authorized": true,
  "visibility": "private",
  "review_status": "draft"
}

Proposed design only: not an existing Catalyst Grit REST route or JSON schema. Implementation should enforce project ownership, role and scope checks, least-privilege export, clear consent/withdrawal semantics, data minimization, idempotent submission, optimistic revision control, provenance, configured retention, and an append-only audit trail. Publication must be separately authorized and aggregated with disclosure-risk review.

10. Scientific assumptions and interpretation

Descriptively, the Day 9 observed-only mean is 336.06 ms, whereas the unchanged source mean is 350.85 ms. For a hypothetical unobserved Day 9 group, the sensitivity equation is:

scenario_mean = (n_observed * observed_mean + n_missing * (observed_mean + delta)) / (n_observed + n_missing)

delta is a user-specified departure from the observed group mean, not an empirically identified MNAR effect. Illustrative scenarios with delta = −40, 0, +40 or +80 ms show how result assumptions matter. With full original values available for this teaching exercise, the difference can be diagnosed directly; in an actual incomplete study, it ordinarily cannot.

For psychological scales, missing scores may not be on an interval scale suitable for naive mean comparisons, and measurement invariance may fail across waves or groups. Report uncertainty and competing explanations. Neither a successful model fit nor internal consistency establishes that the Catalyst Grit recovery-condition score measures grit, resilience, or a clinical outcome.

11. Source-pinned repository references

GitHub evidence Supported interpretation / boundary
Release and CLI instructions Source-reviewed v2.0.0 description; no scientific validity assertion
Monitoring snapshots and governance Immutable revision-pinned snapshots; two required for directional trend
Methodology profile Recovery-condition scores are not psychometric validation
Revision and retention contract Append-only revisions and guarded deletion described
Private WordPress workspace Authenticated user workspace distinct from public demo
Institutional API contract Scopes, audits and a governed publication route described
SQLite implementation Storage and snapshot functionality; no validated missingness estimator
Monitoring tests Snapshot traceability and team privacy tests
Canonical recovery-record schema Not a participant-wave psychometrics schema
Methodology profile configuration Source version of nonclinical recovery conditions

All links pin to source commit f9617160ffd276c6a6fd847b1e846bb5f73b07ae. The reviewed release is v2.0.0; the last verified installed version is not established. File-level code review is not a staging security audit or independent peer review.

12. Negative tests and engineering verification

Failure scenario Expected handling Check status
Duplicate subject-wave, invalid number, altered source value Reject and preserve input evidence Bundled offline tests
Missing observed value coded as zero Reject and retain null Bundled offline tests
Mask provenance absent or wrong Reject as unverifiable analysis Bundled offline tests
Cross-project read or missing consent Deny and audit in deployed system Reference guard tests only; staging pending
Stale revision, missing scope, public record export Reject with safe error Reference guard tests only; staging pending
Draft marked approved or unsupported clinical/causal claim Block publication and escalate Reference claim checks only; staging pending
Instrument version or invariance failure Withhold psychometric comparison Independent review pending

Passing these reference-adapter tests does not prove the installed product enforces the equivalent boundaries.

13. Deployment, staging and recovery

  1. Record the deployed Catalyst Grit build, WP plugin version, route list, and migration state without disclosing secrets.
  2. Use synthetic data in staging to validate access across accounts/projects and denial of anonymous reads.
  3. Check signed revisions and source hashes through save, reassessment, export, restore, and replay.
  4. Verify missing waves remain missing, absence does not implicitly mean poor resilience, and dashboards disclose their denominators.
  5. Require review for any research summary or public aggregate; verify restricted fields are excluded from logs, search, embedded views, and exports.
  6. Verify rollback preserves audit evidence; follow authorized retention and deletion policies rather than editing history.
  7. For any failed control, disable the unsafe workflow, preserve nonsecret reproduction evidence, and escalate to the service owner.

14. References and reporting limits

  1. lme4 documentation — sleepstudy; published reaction-time panel, not a grit measurement instrument.
  2. Rdatasets CSV copy of sleepstudy; package observations should be independently compared to this source before external reuse.
  3. National Research Council (2010), The Prevention and Treatment of Missing Data in Clinical Trials; missingness prevention and sensitivity analysis.
  4. COSMIN guidance; measurement properties, scope, and instrument selection.
  5. Longitudinal missing-data methods review; analysis considerations.

Study-specific ethics approvals, instrument rights, psychometric validity, statistical model assumptions, software deployment controls, and independent scientific review must be resolved separately. Never publish participant-level data, claim a treatment benefit from this mask, infer diagnostic status, or treat software completion as human approval.

15. Final quality check

Documentation acceptance requires a pinned source version, exact Procedure section, runnable terminal workflow, expected values and denominators, manifest and checksums, explicit simulated-versus-observed provenance, methods and instrument caveats, negative security cases, and a staged scientific-review boundary. The article is ready for editorial review, but not certified as deployed functionality or independent psychological evidence.

Scroll to Top