Skip to content

Function for AUC?

5 messages · Armin Goralczyk, Stephen D. Weigand, N. Lapidus +1 more

#
Hello

Is there an easy way, i.e. a function in a package, to calculate the
area under the curve (AUC) for drug serum levels?

Thanks for any advice
3 days later
#
RSiteSearch("AUC")

would lead you to

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/46416.html
On Dec 13, 2007 12:38 PM, Armin Goralczyk <agoralczyk at gmail.com> wrote:
#
Hi all
On Dec 17, 2007 9:57 AM, N. Lapidus <n.lapidus at gmail.com> wrote:
I know ROCR although I am not familiar with ROC. I have seen the AUC
function of ROCR, but are you sure that this is applicable to the
stated problem, i.e. calculate AUC of serum levels of a drug over
time?! ROC seems to handle completely different problems.

I have been reading the following post (thanks for the hint Stephen):
I tried it:
[1] -45

It is not the correct value, but the formula seems applicable and I
changed it to
[1] 35

which seems to be correct. I hope everyone agees.
I didn't know it's that simple. I guess I don't need another function.
Thank's for all the help and all the suggestions.
#
Armin Goralczyk <agoralczyk at gmail.com> [Mon, Dec 17, 2007 at 11:07:25AM CET]:
[AUC]
Are you sure you don't have x and y wrong? Normally the x values
should be monotonically increasing.