p_loe_ee_function {cities}R Documentation

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)

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

Value

Probabilities of discontinuing due to LoE or EE.

Examples

line_parameters(1,2,4,2)

[Package cities version 0.1.3 Index]