simaerep1.0.0 package

Detect Clinical Trial Sites Over- or Under-Reporting Clinical Events

aggr_duplicated_visits

Aggregate duplicated visits.

check_df_visit

Integrity check for df_visit.

eval_sites

Evaluate sites.

exp_implicit_missing_visits

Expose implicitly missing visits.

get_cum_mean_event_dev

Get cumulative mean event development

get_df_visit_test_mapped

Get df_visit_test mapped

get_df_visit_test

Get df_visit_test

get_legend

replace cowplot::get_legend, to silence warning Multiple components fo...

get_portf_config

Get Portfolio Configuration

get_portf_event_rates

Get Portfolio Event Rates Calculates mean event rates per study and vi...

get_site_mean_ae_dev

Get site mean ae development.

get_visit_med75

Get visit_med75.

is_orivisit

is orivisit class

is_simaerep

is simaerep class

max_rank

Calculate Max Rank

orivisit

create orivisit object

p_adjust_bh_inframe

benjamini hochberg p value correction using table operations

pat_aggr

Aggregate visit to patient level.

pat_pool

Create a study specific patient pool for sampling

pipe

Pipe operator

plot_dots

Plots AE per site as dots.

plot_sim_example

Plot simulation example.

plot_sim_examples

Plot multiple simulation examples.

plot_study

Plot ae development of study and sites highlighting at risk sites.

plot_visit_med75

Plot patient visits against visit_med75.

plot.simaerep

plot AE under-reporting simulation results

poiss_test_site_ae_vs_study_ae

Poisson test for vector with site AEs vs vector with study AEs.

prep_for_sim

Prepare data for simulation.

print.orivisit

Print method for orivisit objects

print.simaerep

Print method for simaerep objects

prob_lower_site_ae_vs_study_ae

Calculate bootstrapped probability for obtaining a lower site mean AE ...

prune_to_visit_med75_inframe

prune visits to visit_med75 using table operations

purrr_bar

Execute a purrr or furrr function with a progress bar.

remap_col_names

renames internal simaerep col_names to externally applied colnames

sim_after_prep

Start simulation after preparation.

sim_inframe

Calculate prob for study sites using table operations

sim_out

simulate under-reporting

sim_pat

simulate patients and events for sites supports constant and non-const...

sim_sites

Calculate prob_lower and poisson.test pvalue for study sites.

sim_test_data_events

simulate test data events

sim_test_data_patient

simulate patient event reporting test data

sim_test_data_portfolio

Simulate Portfolio Test Data

sim_test_data_study

simulate study test data

simaerep

Create simaerep object

site_aggr

Aggregate from visit to site level.

with_progress_cnd

Conditional with_progress.

Monitoring reporting rates of subject-level clinical events (e.g. adverse events, protocol deviations) reported by clinical trial sites is an important aspect of risk-based quality monitoring strategy. Sites that are under-reporting or over-reporting events can be detected using bootstrap simulations during which patients are redistributed between sites. Site-specific distributions of event reporting rates are generated that are used to assign probabilities to the observed reporting rates. (Koneswarakantha 2024 <doi:10.1007/s43441-024-00631-8>).

  • Maintainer: Bjoern Koneswarakantha
  • License: MIT + file LICENSE
  • Last published: 2025-10-28