f_sim {eselect}R Documentation

Simulation 2x2 table binary endpoints

Description

simulation binary data two outcomes

Usage

f_sim(samplesize, p_e1, p_e2, p_ce)

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

Value

Simlated data

the function returns 2x2 table s1+s2: num X1 s1+s3: num X2


[Package eselect version 1.1 Index]