empirical.cdf: Empirical cumulative density function estimation

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

Description

Provide empirical cumulative density function (CDF) estimation of a sample vector xx at a point c_0.

Usage

1
  empirical.cdf(xx, c0)  

Arguments

xx

A numeric vector, sample data.

c0

A numerical value, the value at which the CDF will be estimated.

Details

The CDF of xx at c0 is estimated as ∑{I_{(xx ≤ c_0)}/n} where n is the length of xx and I(.) is the indicator function giving 1 if the criterion in the bracket is satisfied and 0 otherwise.

Value

Return a numerical value indicating the cumulative probability of xx at c_0 by empirical CDF method.

Author(s)

Jingqin Luo

See Also

KernelSmoothing.cdf Youden3Grp

Examples

1
2
3
x <- rnorm(100)

res <- empirical.cdf(xx=x,c0=0.5)


Search within the DiagTest3Grp package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.