Answers for "area under the curve in 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

Code answers related to "area under the curve in r"

Browse Popular Code Answers by Language