Return a vector with the probabilities.
The flexit equation is not still published :
$$if dose < P then (1 + (2^K1 - 1) * exp(4 * S1 * (P - x)))^(-1/K1)$$
$$if dose > P then 1-((1 + (2^K2 - 1) * exp(4 * S2 * (x - P)))^(-1/K2)$$
with:
$$S1 = S/((4/K1)*(2^(-K1))^(1/K1+1)*(2^K1-1))$$
$$S2 = S/((4/K2)*(2^(-K2))^(1/K2+1)*(2^K2-1))$$
Usage
flexit(
x,
par = NULL,
P = NULL,
S = NULL,
K1 = NULL,
K2 = NULL,
zero = 1e-09,
error0 = 0,
error1 = 1
)
Arguments
x
The values at which the flexit model must be calculated