[R] Area Under a Curve

bartjoosen bartjoosen at hotmail.com
Wed Jul 2 09:38:35 CEST 2008


You can take a look at AUC in the PK package


stephen sefick wrote:
> 
> I would like to integrate the area under a curve without any smoothing or
> the like- just on the raw numbers.  I looked at integrate() but it
> requires
> a function which I assume means something like x+x^2+x^3
> 
> is there a built in function in R for this?
> 
> #let's say
> x <- seq(1:50)
> y <- seq(1:50)
> plot(y~x)
> # the are would be 1250
> # I would like to be able to do this but on more complicated numeric sets
> of
> points say dissolved oxygen mass
> 
> 
> thanks
> 
> stephenr
> 
> -- 
> Let's not spend our time and resources thinking about things that are so
> little or so large that all they really do for us is puff us up and make
> us
> feel like gods. We are mammals, and have not exhausted the annoying little
> problems of being mammals.
> 
> -K. Mullis
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 
> 

-- 
View this message in context: http://www.nabble.com/Area-Under-a-Curve-tp18226826p18231936.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list