Re: [R] integral with error:non-finite function value

2012-07-03 Thread Berend Hasselman
Al Ehan wrote > > Hi guys, > > I'm trying to use the the integral function to estimate the area under a > PDF and a crossing curve. first I stated the function with several vectors > in it: > > fn=function(a,b,F,mu,alpha,xi) > { > x<-vector() > fs<-function(x) > { > c <- (mu+(alpha*(1-(1-F)^xi

[R] integral with error:non-finite function value

2012-07-03 Thread Al Ehan
Hi guys, I'm trying to use the the integral function to estimate the area under a PDF and a crossing curve. first I stated the function with several vectors in it: fn=function(a,b,F,mu,alpha,xi) { x<-vector() fs<-function(x) { c <- (mu+(alpha*(1-(1-F)^xi)/xi)) tmp <- (1 + (xi * (x - mu))/alpha)