Learn R Programming

bda (version 1.2.7-31)

edf: To compute the empirical distribution function.

Description

To compute the empirical distribution function.

Usage

edf(x,weights, xgrid,na.rm=TRUE)

Arguments

x
A sample. 'NA' values will be automatically removed.
weights
A vector of weights for the values of x
xgrid
A grid of points where the edf will be evaluated.
na.rm
A indicator showing whether NA values will be automatically removed. Default: TRUE.

See Also

pcb.

Examples

Run this code
x = rnorm(100)
(out = edf(x))
plot(out)
(out2= pcb(out))
lines(out2)

Run the code above in your browser using DataLab