https://cran.r-project.org/web/packages/SimTimeVar/index.html
CRAN: Package SimTimeVar
Flexibly simulates a dataset with time-varying covariates with user-specified exchangeable correlation structures across and within clusters. Covariates can be...
cranpackage