f_sim: Simulation 2x2 table binary endpoints

View source: R/f_sim.R

f_simR 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


eselect documentation built on Feb. 16, 2023, 8:11 p.m.

Related to f_sim in eselect...