Simulate Longitudinal Dataset with Time-Varying Correlated Covariates


[Up] [Top]

Documentation for package ‘SimTimeVar’ version 1.0.0

Help Pages

add_one_categorical Generate linear predictor from logistic model
add_time_function_vars Creates linear time-function variables
BN.rBound Maximum correlation between binary and normal random variables
cat.params An example dataframe for categorical variable parameters
closest Return closest value
complete_parameters Fill in partially incomplete parameters matrix
expand_matrix Longitudinally expand a matrix of single observations by cluster
expand_subjects Longitudinally expand a cluster
has_drug_suffix Checks whether string has "_s" suffix
make_one_dataset Simulate time-varying covariates
make_one_linear_pred Generate linear predictor from logistic model
mod.jointly.generate.binary.normal Return closest value
override_static Override static variable
override_tbin_probs Override probabilities for time-varying binary variables
params An example parameters dataframe
pcor An example across-cluster correlation dataframe
proportionize Turn a number into a valid proportion
upper_tri_vec Turn symmetric matrix into vector
wcor An example within-cluster correlation dataframe