Learn R Programming

bda (version 2.0.11-4)

pcb: To compute the pointwise confidence bands.

Description

To compute the pointwise confidence bands.

Usage

pcb(x, level=0.95,...)

Arguments

x
An R object or a vector of numeric values.
level
The confidence coefficient. Default: 0.95.
...
Controls

References

Wang, B. and Wertelecki, W. (2012) Density Estimation for Data With Rounding Errors. Computational Statistics and Data Analysis, (in press), doi: 10.1016/j.csda.2012.02.016.

See Also

edf.

Examples

Run this code
x = rnorm(30, 34.5, 1.5)
pcb(x)

(out = edf(x))
plot(out)
(out2= pcb(out))
lines(out2, col=2)

Run the code above in your browser using DataLab