Skip to contents

Returns a new StateTransitionData with the declared design stored in the sampling_design slot. Does not mutate the caller's object.

Usage

declare_sampling_design(data, design)

Arguments

data

a StateTransitionData object

design

a SamplingDesign from cross_sectional, independent_time_course, or longitudinal

Value

a new StateTransitionData with sampling_design set

Details

For a time-aware design, the observed-time column must exist and contain at least two distinct usable values. For a longitudinal design, subject IDs must additionally be non-missing and at least one subject must have distinct repeated time points.