f_sim: Simulation 1-arm

View source: R/f_sim.R

f_simR 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)

CompAREdesign documentation built on Oct. 2, 2022, 5:08 p.m.