Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201867

calculate AUC using trapz function in R for each mmol/ dl per each ID? I want t calculate AUC also for every increase in conoctretation by 1.by

$
0
0

strong text#calculate of AUC per each ID

calculate AUC per ID, for CONC>12?

sapply(split(data.f, data.f$ID), function(data.f) trapz(data.f$time, data.f$conc))

data.f=

ID1 time2 conc3
2 5 12 3 7 6 4 12 15


Viewing all articles
Browse latest Browse all 201867

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>