aacp: Utils: Area under the curve

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/aac_function.R

Description

Performs the calculation of the area under the progress curve. Initially created for the plant disease area, whose name is "area under the disease progress curve", it can be adapted to various areas of agrarian science.

Usage

1

Arguments

data

Data.frame containing evaluations in columns. Column names must be numeric and not dates or characters

Value

Returns a vector with the area values under the curve

Note

Just enter the data. Exclude treatment columns. See example.

Author(s)

Gabriel Danilo Shimizu, shimizu@uel.br

References

Campbell, C. L., and Madden, L. V. (1990). Introduction to plant disease epidemiology. John Wiley and Sons.

See Also

transf, sketch

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#=======================================
# Using the simulate1 dataset
#=======================================
data("simulate1")

# Converting to readable format for function
dados=cbind(simulate1[simulate1$tempo==1,3],
            simulate1[simulate1$tempo==2,3],
            simulate1[simulate1$tempo==3,3],
            simulate1[simulate1$tempo==4,3],
            simulate1[simulate1$tempo==5,3],
            simulate1[simulate1$tempo==6,3])
colnames(dados)=c(1,2,3,4,5,6)
dados

# Creating the treatment vector
resp=aacp(dados)
trat=simulate1$trat[simulate1$tempo==1]

# Analyzing by DIC function
DIC(trat,resp)

AgroR documentation built on July 16, 2021, 9:06 a.m.