View source: R/plot-ddiratio.R
getGuestValues | R Documentation |
Get a data.frame with Guest et al. ratio limits with:
ymax
= x
.limit
ymin
= x
/limit
limit
= (delta
+2(x
-1))/x
getGuestValues(x, delta = 1, residualsVsObserved = FALSE)
x |
Numeric values input of Guest function |
delta |
Numeric value parameter of Guest function |
residualsVsObserved |
Logical value defining if limits are calculated as residuals vs observed, instead of predicted vs observed. |
A data.frame with x
, ymin
and ymax
defining Guest et al. limits
https://dmd.aspetjournals.org/content/39/2/170
# Get predicted vs observed Guest et al. limits
getGuestValues(x = 10^seq(-2, 2, 0.2))
# Get residuals vs observed Guest et al. limits
getGuestValues(x = 10^seq(-2, 2, 0.2), residualsVsObserved = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.