simpECDF: Empirical cumulative distribution function

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/simpECDF.R

Description

Calculate a simple empirical cumulative distribution function that returns a matrix instead of a stepfun.

Usage

1
simpECDF(x, complement = FALSE)

Arguments

x

numeric vector

complement

logical, should the eCDF be calculated from left to right (default) or right to left

Details

Calculate a simple empirical cumulative distribution function that returns a matrix instead of a stepfun.

Value

A matrix with first column corresponding to the values of x and second column giving the cumulative density

Author(s)

Andy Rominger <ajrominger@gmail.com>

See Also

ecdf, cumsum

Examples

1
2
x <- rnorm(100)
plot(simpECDF(x))

ajrominger/socorro documentation built on Jan. 3, 2020, 6:25 a.m.