search for: myecdfon

Displaying 1 result from an estimated 1 matches for "myecdfon".

2012 Apr 24
2
Function from ecdf to ccdf
..., the ccdf is the 1-ecdf(X)==1-F(x). (From ?ecdf help is shown that ecdf returns a function which is the F(x) I would like to use that function inside my function and after call curve (which accepts function as input). My code looks like that onVector<-seq(1:100) offVector<-seq(101:200) myecdfOn<-function(onVector){1-ecdf(onVector)} # This gives the ccdf curve(myecdfOn,from=1,to=max(c(onVector,offVector)), add=TRUE,lwd=2) Unfortunately fails and I can not really see what is he problem of it. Could you please help me? B.R Alex [[alternative HTML version deleted]]