replicate(5, sim_test_data_patient())
replicate(5, sim_test_data_patient(
.f_sample_ae_per_visit = function(x) rpois(x, 1.2))
)
replicate(5, sim_test_data_patient(
.f_sample_max_visit = function() rnorm(1, mean = 5, sd = 5))
)
Run the code above in your browser using DataLab