Learn R Programming

agricolae (version 1.0-4)

audpc: Calculating the absolute or relative value of the AUDPC

Description

Area Under Disease Progress Curve. The AUDPC measures the disease throughout a period. The AUDPC is the area that is determined by the sum of trapezes under the curve.

Usage

audpc(evaluation, dates, type = "absolute")

Arguments

evaluation
Table of data of the evaluations: Data frame
dates
Vector of dates corresponding to each evaluation
type
relative, absolute

Value

  • evaluationdata frame
  • datesa numeric vector
  • typetext

Details

AUDPC. For the illustration one considers three evaluations (14, 21 and 28 days) and percentage of damage in the plant 40, 80 and 90 (interval between dates of evaluation 7 days). AUDPC = 1045. The evaluations can be at different interval.

References

Campbell, C. L., L. V. Madden. (1990): Introduction to Plant Disease Epidemiology. John Wiley & Sons, New York City.

Examples

Run this code
library(agricolae)
# example 1
dates<-c(14,21,28)
evaluation<-data.frame(E1=40,E2=80,E3=90)
# It calculates audpc absolute
absolute<-audpc(evaluation,dates,type="absolute")
print(absolute)
rm(evaluation, dates, absolute)
# example 2
data(disease)
attach(disease)
dates<-c(1,2,3)
evaluation<-disease[,c(4,5,6)]
# It calculates audpc relative
indice<-audpc(evaluation, dates, type = "relative")
# datos para analisis
data2<-data.frame(disease, audpc=indice)
# Correlation between the yield and audpc
attach(data2)
correlation(yield, audpc, method="kendall")

Run the code above in your browser using DataLab