Today we had a data set come in that the researcher requested AUDPC (Area Under the Disease Progress Curve) [@Shaner1977] be calculated from two points.
This is a common request as it’s quite time and labour intensive to collect these data, especially in breeding trials and can be done with a simple formula from @Jeger2001.
However, I wasn’t aware of any R package that implemented this calculation, so I wrote a function to do it.
Note that your values for disease severity must be between 0 and 1, so if you are using a percentage scale, you will need to divide by 100.
1
2
3
4
5
6
7
8
9
10
11
audpc_2_points <-function(time, y0, yT) {
stopifnot("`y0` and `yT` must be between 0 and 1 inclusive"= (y0 >=0L& y0 <=1L) && (yT >=0L& yT <=1L))
# eqn. 3 from Jeger and Viljanen-Rollinson (2001), rate parameter r r <- (log(yT / (1L- yT)) -log(y0 / (1L- y0))) / time
# eqn. 2 from Jeger and Viljanen-Rollinson (2001), AUDPC estimationreturn(time +log(y0 / yT) / r)
}
We can see that the values are very similar, but not identical, i.e., our two point method results in 14.6899594, while the traditional method provides, 14.6914735, which is what @Jeger2001 proposes we should expect, values that are close enough to be useful but not identical.