Skip to contents

S3 Interface

simaerep() simaerep_inframe() simaerep_classic()
Create simaerep object
plot(<simaerep>)
plot AE under-reporting simulation results
orivisit()
create orivisit object

Internal Algorithm Functions

These Functions perform part of the algorithm

site_aggr()
Aggregate from visit to site level.
sim_sites()
Calculate prob_lower and poisson.test pvalue for study sites.
sim_inframe()
Calculate prob for study sites using table operations
eval_sites()
Evaluate sites.
check_df_visit()
Integrity check for df_visit.

Simulate Data

sim_test_data_study()
simulate study test data
get_portf_config()
Get Portfolio Configuration
get_portf_event_rates()
Get Portfolio Event Rates Calculates mean event rates per study and visit in a df_visit simaerep input dataframe.
sim_test_data_portfolio()
Simulate Portfolio Test Data
sim_test_data_events()
simulate test data events
sim_out()
simulate under-reporting

Helper Functions Multiprocessing

purrr_bar()
Execute a purrr or furrr function with a progress bar.
with_progress_cnd()
Conditional with_progress.

Additional Plot Functions

These functions are intended for creating plots for the documentation.

plot_sim_example()
Plot simulation example.
plot_dots()
Plots AE per site as dots.
get_cum_mean_event_dev()
Get cumulative mean event development