Answers for "AREA UNDER THE CURVE PACKAGE R\"

R
0

area under the curve in r

library(zoo)

x <- 1:10
y <- 3*x+25
id <- order(x)

AUC <- sum(diff(x[id])*rollmean(y[id],2))
Posted by: Guest on October-19-2020

Browse Popular Code Answers by Language