audpc | R Documentation |
Computes the absolute (AUDPC) or relative (rAUDPC) area under the disease progress curve.
audpc(dfr, evals, dates)
dfr |
The name of the data frame. |
evals |
The names of the columns for the evaluations. |
dates |
A vector with the dates of evaluation. |
Evaluations are subjective ranging from 0 (no disease) to 100 (full disease).
Dates should follow the format YYYY-MM-DD.
audpc
is expressed in days x
It returns the original data frame with added columns for AUDPC and rAUDPC.
Raul Eyzaguirre.
head(lbb3c3)
evals <- c("lb1", "lb2", "lb3", "lb4", "lb5", "lb6")
dates <- c("2017-11-20", "2017-11-27", "2017-12-04",
"2017-12-11", "2017-12-18", "2017-12-25")
tmp <- audpc(lbb3c3, evals, dates)
head(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.