audpc: Area Under the Disease Progress Curve

View source: R/audpc.R

audpcR Documentation

Area Under the Disease Progress Curve

Description

Computes the absolute (AUDPC) or relative (rAUDPC) area under the disease progress curve.

Usage

audpc(dfr, evals, dates)

Arguments

dfr

The name of the data frame.

evals

The names of the columns for the evaluations.

dates

A vector with the dates of evaluation.

Details

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

Value

It returns the original data frame with added columns for AUDPC and rAUDPC.

Author(s)

Raul Eyzaguirre.

Examples

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)              

reyzaguirre/st4gi documentation built on March 29, 2025, 10:38 p.m.