Skip to contents

Identifies the colData columns carrying subject identity and ordered measurement time. Repeated-subject association strategies consume these columns; cross-sectional estimators reject this design at the capability gate.

Usage

longitudinal(subject_id, time, time_unit = character(0L))

Arguments

subject_id

character name of the colData column containing subject IDs

time

character name of the colData column containing ordered time

time_unit

optional character description of the time unit (e.g. "days")

Value

a validated SamplingDesign object

Details

Column existence and distinctness are checked here. Subject IDs and time values are validated by declare_sampling_design against the actual colData.