Andras Farkas
2012-Sep-08 15:26 UTC
[R] Help on calculating AUC with caTools trapz(a,b) command
Dear All, I have the following example: a <-matrix(c(1:100),ncol=10) b <-matrix(c(2,4,6,8,10,12,14,16,18,20)) trapz(b,a) will give me a result of 99, which it seems to me is the AUC of the 1st column only. Is it possible to get the AUC results by columns of "a" using the same "b" values in the calculations as opposed to just generating the result for the 1st column? It would be important that the AUCs are NOT summed up, but awailble for further evaluation by columns of "a". Apreciate the help, Andras [[alternative HTML version deleted]]