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.

Getting started

Package details

AuthorMaya B. Mathur, Kristopher Kapphahn, Ariadna Garcia, Manisha Desai, Maria E. Montez-Rath
MaintainerMaya B. Mathur <mmathur@stanford.edu>
LicenseGPL-2
Version1.0.0
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("SimTimeVar")

Try the SimTimeVar package in your browser

Any scripts or data that you put into this service are public.

SimTimeVar documentation built on May 2, 2019, 8:31 a.m.