Synthetic Relational Data Framework

gen_reljoin_table()

Generate synthetic data relationally-linked to existing data

gen_table_data()

Generate variables in a table

no_key no_deps no_rec no_args

Sentinel Values for Recipes

table_spec()

Construct a table specification from one or more recipes

validate_recipe_deps()

Validate recipe for circular dependencies

Helper Functions

inject_nas()

Apply random or systematic missingness to existing data according to recipe

miss_as_block()

Function constructor for injecting "missing together" NAs to columns

miss_at_random()

Function constructor for injecting independent missing-at-random NAs to columns

pct_orig secs_per_year secs_per_day rand_posixct()

Generate a sample of random datetimes

rep_per_key() rand_per_key()

Convenience helper functions for defining relational-join recipes

sample_fct() sample_yn() rep_n() seq_n()

Create a factor with random elements of x

subjid_func()

Generate sequence of "subject id"s

Internal Functions

lookup_fun()

Lookup function from value you recipe column