emcdf: Estimating the population cdf

Description Usage Arguments Details Value Author(s) References Examples

View source: R/emcdf.r

Description

Finding confidence interval for the population cdf.

Usage

1
emcdf(x, conf.level = 0.05)

Arguments

x

numeric vector of data values

conf.level

confidence level for the returned confidence interval

Details

This "emcdf" constructs the approximation interval according to the central limit theorem. And use "plot(emcdf(data))" will help us draw a plot conveniently.

Value

A list with following components

sample

the given vector

empirical.cdf

the value of the empirical cdf

Lower

the lower bound of the confidence interval of the empirical cdf

Upper

the upper bound of the confidence interval of the empirical cdf

Author(s)

Jiasheng Zhang, Feng Yu, Yangyang Zhang, Siwei Deng. Tutored by YuKun Liu and Dongdong Xiang.

References

Higgins, J. J. (2004). An introduction to modern nonparametric statistics. Pacific Grove, CA: Brooks/Cole.

Examples

1
2
3
x <- c(7,11,15, 16, 20, 22, 24, 25, 29, 33, 34, 37, 41, 42, 49, 57, 66, 71, 84, 90)
em <- emcdf(x)
plot(em)

CNPS documentation built on May 25, 2021, 9:06 a.m.

Related to emcdf in CNPS...