f_sim | R Documentation |
simulation binary data two outcomes
f_sim(samplesize, p_e1, p_e2, p_ce)
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 |
Simlated data
the function returns 2x2 table s1+s2: num X1 s1+s3: num X2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.