TestingSimilarity (version 1.1)

dff: Implementation of absolute difference function

Description

Function calculating the absolute difference of two dose response models: $$dff(d,\beta_1,\beta_2)=|m_1(d,\beta_1)-m_2(d,\beta_2)|$$

Usage

dff(d, beta1, beta2, m1, m2)

Arguments

d

real-valued argument to the function (dose variable)

beta1, beta2

model parameters (real vectors)

m1, m2

model types. Built-in models are "linlog", "linear", "quadratic", "emax", "exponential", "sigEmax", "betaMod" and "logistic"

Value

Response value for the absolute difference of two models.