Checks that all `implementation$variable` references in the spec actually
exist as columns in the skeleton data.table. For categorical confounders,
also checks that the declared categories match the data. Collects all
issues before reporting.
Usage
tteplan_validate_spec(spec, skeleton)
Arguments
- spec
Parsed study specification from [tteplan_read_spec()].
- skeleton
A data.table skeleton (person-week panel) to validate
against.
Value
`invisible(TRUE)` on success; emits a warning with a numbered
issue list if any checks fail.