You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part of the post-v0.4.0 development plan (development/post-v040-development-plan.md, Phase 2, Task 7).
Context
Longest-standing known issue (NEWS, since v0.2.0): survival data must be generated manually with create_wide_survival_data() because it produces paired entry/event columns, while create_mock_data() assembles one column per variable.
Metadata is already plumbed: followup_min, followup_max, event_prop flow through the recodeflow adapter onto spec variables (R/mock_spec_recodeflow.R:367-369); rate/shape likewise (:365-366). The blocker is architectural, not statistical.
Design decisions (small design note, then implement)
Pairing convention in metadata — how an event variable names its entry/anchor variable. Plan recommendation: an explicit anchor extension column on the event variable's row.
Multi-column generator contract — a spec variable of type survival whose generator returns a 2-column data frame; assembly loop accepts multi-column returns; validate_mock_spec() checks pairing integrity (anchor exists, is a date variable, ordering constraints).
Diagnostics attribution — both columns attributed to the one spec entry in mockdata_diagnostics.
Acceptance
create_mock_data() generates entry/event pairs from metadata alone (no manual create_wide_survival_data() call).
Part of the post-v0.4.0 development plan (
development/post-v040-development-plan.md, Phase 2, Task 7).Context
Longest-standing known issue (NEWS, since v0.2.0): survival data must be generated manually with
create_wide_survival_data()because it produces paired entry/event columns, whilecreate_mock_data()assembles one column per variable.Metadata is already plumbed:
followup_min,followup_max,event_propflow through the recodeflow adapter onto spec variables (R/mock_spec_recodeflow.R:367-369);rate/shapelikewise (:365-366). The blocker is architectural, not statistical.Design decisions (small design note, then implement)
anchorextension column on the event variable's row.survivalwhose generator returns a 2-column data frame; assembly loop accepts multi-column returns;validate_mock_spec()checks pairing integrity (anchor exists, is a date variable, ordering constraints).mockdata_diagnostics.Acceptance
create_mock_data()generates entry/event pairs from metadata alone (no manualcreate_wide_survival_data()call).Relates to #17, #23.