# NOT RUN {
# Calculation in the case of exponentials with no margin.
prob <- SupProb(
cens_prop = 0.15,
n = 100,
med1 = 9,
med2 = 12,
)
# Calculation in the case of exponentials with a 2 month margin.
# The probability should be lower than in the absence of a margin.
prob <- SupProb(
cens_prop = 0.15,
n = 100,
med1 = 9,
med2 = 12,
margin = 2
)
# Calculation in the case of Weibulls with a 2 month margin.
prob <- SupProb(
cens_prop = 0.15,
n = 100,
shape1 = 2.8,
rate1 = 0.10,
shape2 = 4.0,
rate2 = 0.08,
margin = 2
)
# }
Run the code above in your browser using DataLab