Learn R Programming

CompAREdesign (version 2.4.0)

f_sim: Simulation 1-arm

Description

Simulation of a trial with a composite endpoint

Usage

f_sim(samplesize, p_e1, p_e2, p_ce)

Value

simulated data

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

Examples

Run this code
data=f_sim(samplesize=100,p_e1=0.1,p_e2=0.5,p_ce=0.6)
head(data)

Run the code above in your browser using DataLab