dummy_df <- fabricatr::fabricate(
N = 100,
binary = fabricatr::draw_binary(
N,
prob = runif(N)
),
binomial = fabricatr::draw_binomial(
prob = runif(N),
trials = 2
),
uniform = runif(N),
random_normal = rnorm(N, 38, 16)
)
dummy_df |> head()
ID binary binomial uniform random_normal
1 001 0 2 0.241211455 14.98915
2 002 0 2 0.002083675 28.97463
3 003 0 2 0.102645113 59.94338
4 004 1 2 0.124053932 39.85355
5 005 1 0 0.863406008 45.04457
6 006 1 0 0.655067994 59.41866