Re: [R] function of an integral

2010-07-20 Thread Wu Gong
Hi, I'm trying to replicate your program. It may be not the same as yours, hope it helps. ## Create a vector of numbers cip <- seq(1.0,2.5,by=0.1) ## Create ecdf function Fn <- ecdf(cip) ## Create f function f <- function(x){(1-Fn(x))^4} ## Create integrate function ## Because the integrate

[R] function of an integral

2010-07-20 Thread Nathalie Gimenes
Hi All, I have a problem to create a variable that is a function of an integral of another function. The problem is the following: I have a variable called cip. I have to create another variable called bip that is a function of the former variable cip and also the cumulative distribution funct