simulate_safety: Simulate core safety data

View source: R/simulate.R

simulate_safetyR Documentation

Simulate core safety data

Description

Adverse events and peak liver tests in multiples of the upper limit of normal. Synthetic data.

Usage

simulate_safety(n_per_arm = 160, seed = 20260321)

Arguments

n_per_arm

Subjects per arm.

seed

Random seed, restored after the call.

Value

A list with adsl, adae and adlb.

Examples

saf <- simulate_safety(n_per_arm = 20)
plot_edish(saf$adlb)

trialfigs documentation built on Oct. 15, 2026, 5:09 p.m.