cLDA constraint for discrete-time models in R formulas
I work with longitudinal (repeated measures) models of clinical trial data. Patients are randomized to different treatment groups and measured over multiple pre-specified points in time. An example dataset is the FEV dataset from the mmrm
package, where ARMCD
denotes treatment groups and AVISIT
denotes discrete time points: