f_sim: Simulation 2x2 table binary endpoints
Description
simulation binary data two outcomes
Usage
f_sim(samplesize, p_e1, p_e2, p_ce)
Value
Simlated data
the function returns 2x2 table
s1+s2: num X1
s1+s3: num X2
Arguments
- samplesize
sample size simulated sample
- p_e1
numeric parameter, probability of occurrence E1
- p_e2
numeric parameter, probability of occurrence E2
- p_ce
numeric parameter, probability of occurrence composite endpoint