Simulation of Study Data
Add columns to existing data set
Generating single competing risk survival variable
Add a single column to existing data set based on a condition
Add correlated data to existing data.table
Create multivariate (correlated) data - for general distributions
Create multivariate (correlated) data - for general distributions
Add data from a density defined by a vector of integers
Add Markov chain
Add multi-factorial data
Create longitudinal/panel data
Add synthetic data to existing data set
Convert beta mean and precision parameters to two shape parameters
Create a block correlation matrix
Create a block correlation matrix with exchangeable structure
Generate Categorical Formula
Add single row to definitions table of conditions that will be used to...
Add single row to definitions table
Add single row to definitions table that will be used to add data to a...
Definitions for missing data
Read external csv data set definitions
Read external csv data set definitions for adding columns
Read external csv data set definitions for adding columns
Add multiple (similar) rows to definitions table
Add multiple (similar) rows to definitions table that will be used to ...
Add single row to survival definitions
Delete columns from existing data set
Distributions for Data Definitions
Convert gamma mean and dispersion parameters to shape and rate paramet...
Generate Categorical Formula
Simulate clustered data
Create correlated data
Create multivariate (correlated) data - for general distributions
Create multivariate (correlated) data - for general distributions
Create a correlation matrix
Generate correlated ordinal categorical data
Calling function to simulate data
Generate data from a density defined by a vector of integers
Create dummy variables from a factor or integer variable
Create factor variable from an existing (non-double) variable
Generate a linear formula
Generate Markov chain
Generate missing data
Generate Mixture Formula
Generate multi-factorial data
Generate event data using longitudinal data, and restrict output to ti...
Create an observed data set that includes missing data
Generate ordinal categorical data
Generate spline curves
Generate survival data
Generate synthetic data
Mark parameters as grouped
Generate variance for random effects that produce desired intra-class ...
Determine intercept, treatment/exposure and covariate coefficients tha...
Merge two data.tables without modifying inputs
Convert negative binomial mean and dispersion parameters to size and p...
Create list of parameter scenarios
Deprecated functions in simstudy
simstudy: Simulation of Study Data
Get survival curve parameters
Plot survival curves
Trim longitudinal data file once an event has occurred
Assign treatment
Observed exposure or treatment
Assign treatment for stepped-wedge design
Update definition table
Update definition table
Plot basis spline functions
Plot spline curves
Simulates data sets in order to explore modeling techniques or better understand data generating processes. The user specifies a set of relationships between covariates, and generates data based on these specifications. The final data sets can represent data from randomized control trials, repeated measure (longitudinal) designs, and cluster randomized trials. Missingness can be generated using various mechanisms (MCAR, MAR, NMAR).
Useful links