f_sim {CompAREdesign} | R Documentation |
Simulation 1-arm
Description
Simulation of a trial with a composite endpoint
Usage
f_sim(samplesize, p_e1, p_e2, p_ce)
Arguments
samplesize |
sample size per arm |
p_e1 |
numeric parameter, probability of the event E1 |
p_e2 |
numeric parameter, probability of the event E2 |
p_ce |
probability of the composite endpoint |
Value
simulated data
Examples
data=f_sim(samplesize=100,p_e1=0.1,p_e2=0.5,p_ce=0.6)
head(data)
[Package CompAREdesign version 2.4.0 Index]