p_loe_ee_function: p_loe_ee_function
Description
Helper function that returns probability of discontinuing due
to lack of efficacy (LoE) or excess efficacy (EE) via a piecewise linear
function
Usage
p_loe_ee_function(z, p_max, z_l, p_min = 0, z_u, up_good = TRUE)
Value
Probabilities of discontinuing due to LoE or EE.
Arguments
- z
Vector of numeric values, i.e. change from baseline values
- p_max
Maximum probability of discontinuing
- z_l
The lower (or left) threshold of the piecewise linear function
- p_min
Maximum probability of discontinuing (set to 0)
- z_u
The upper (or right) threshold of the piecewise linear function
- up_good
TRUE if higher outcome values indicate better responses