SimTimeVar: Simulate Longitudinal Dataset with Time-Varying Correlated Covariates

Flexibly simulates a dataset with time-varying covariates with user-specified exchangeable correlation structures across and within clusters. Covariates can be normal or binary and can be static within a cluster or time-varying. Time-varying normal variables can optionally have linear trajectories within each cluster. See ?make_one_dataset for the main wrapper function. See Montez-Rath et al. <arXiv:1709.10074> for methodological details.

Version: 1.0.0
Imports: metafor, mvtnorm, ICC, miscTools, car, plyr, corpcor, psych, stats, utils
Published: 2017-09-30
Author: Maya B. Mathur, Kristopher Kapphahn, Ariadna Garcia, Manisha Desai, Maria E. Montez-Rath
Maintainer: Maya B. Mathur <mmathur at stanford.edu>
License: GPL-2
NeedsCompilation: no
CRAN checks: SimTimeVar results

Documentation:

Reference manual: SimTimeVar.pdf

Downloads:

Package source: SimTimeVar_1.0.0.tar.gz
Windows binaries: r-devel: SimTimeVar_1.0.0.zip, r-release: SimTimeVar_1.0.0.zip, r-oldrel: SimTimeVar_1.0.0.zip
macOS binaries: r-release (arm64): SimTimeVar_1.0.0.tgz, r-oldrel (arm64): SimTimeVar_1.0.0.tgz, r-release (x86_64): SimTimeVar_1.0.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=SimTimeVar to link to this page.