powered by
Simulation of a trial with a composite endpoint
f_sim(samplesize, p_e1, p_e2, p_ce)
simulated data
sample size per arm
numeric parameter, probability of the event E1
numeric parameter, probability of the event E2
probability of the composite endpoint
data=f_sim(samplesize=100,p_e1=0.1,p_e2=0.5,p_ce=0.6) head(data)
Run the code above in your browser using DataLab