Hello, Alaios,
take a look at the help page of ecdf() where it says that the result of
ecdf(x) is a 'function (!) of class "ecdf"', not a vector of function
values.
Take a look at what
1- ecdf(onVector)(onVector)
does, and maybe
myecdfOn <- function( x) { 1- ecdf(x)(x)}
followed by
On Apr 24, 2012, at 4:47 AM, Alaios wrote:
Dear all,
I would like to calculate the complementary cumulative distribution
function. As it is known, 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
Dear all,
I would like to calculate the complementary cumulative distribution function.
As it is known, 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 a
3 matches
Mail list logo