20.23 predictions.csv schema
Core columns are ID, TIME, source ROW, DV, PRED, IPRED, RES, IRES, IWRES, WRES, CWRES, FFLAG, EXCL, ETAs, DVID when present, then carried columns. ROW permits reconciliation to source records after filtering/sorting.
PRED uses ETA zero; IPRED uses conditional individual estimate. RES/IRES are raw; IWRES divides by conditional residual SD; WRES/CWRES whiten population/conditional linearized residual vectors. FFLAG likelihood records and excluded no-drug observations have intentionally blank residuals.
Validate types: IDs may be hashed/represented according to privacy, carried text remains text, blank is missing not zero. Check one row against independent fixed prediction and one subject’s whitening calculation. Multiple DVIDs require endpoint-specific scale/plots.
The table is estimation-scale evidence. GOF plotting filters/back-transforms do not alter it. Preserve raw machine table before derived transformations.
Prediction-file QC
Reconcile row count with the included observation policy and confirm uniqueness of the intended key, commonly subject plus record/order information. Repeated times and multiple outcomes make ID,TIME alone insufficient. Preserve original record identifiers when available.
Check definitions before plotting: PRED is population prediction, IPRED includes individual random effects, and residual columns use specific denominators and approximations. Do not mix CWRES and IWRES or assume they have identical theoretical behavior. Verify units and transformation scale for DV and predictions.
Scan for nonfinite values, impossible predictions, duplicated rows and missing carried columns. Compare selected records with an independent fixed-vector calculation. For stratified diagnostics, confirm that carried categories are correct at each record. Prediction CSV is a diagnostic product, not automatically a simulation-ready dataset or a substitute for raw observations.
Common mistakes
Do not sort and lose ROW alignment, calculate CWRES as pointwise IRES/SD, fill blanks, or pool endpoints with different units.
Checklist
- Validate schema/types/row count.
- Reconcile ROW to source.
- Verify PRED/IPRED/residual definitions.
- Respect FFLAG/EXCL blanks.
- Protect identifiers/carried columns.
Further reading
See predose/table policy, Chapter 18 residual formulas, and Chapter 21.