sim_test_data_patient {simaerep} | R Documentation |
simulate patient ae reporting test data
Description
helper function for sim_test_data_study()
Usage
sim_test_data_patient(
.f_sample_max_visit = function() rnorm(1, mean = 20, sd = 4),
.f_sample_ae_per_visit = function(max_visit) rpois(max_visit, 0.5)
)
Arguments
.f_sample_max_visit |
function used to sample the maximum number of aes, Default: function() rnorm(1, mean = 20, sd = 4) |
.f_sample_ae_per_visit |
function used to sample the aes for each visit, Default: function(x) rpois(x, 0.5) |
Details
""
Value
vector containing cumulative aes
Examples
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))
)
[Package simaerep version 0.5.0 Index]