Plot the empirical against the theoretical distibution function.
Usage
dplot(x, distn, parm, H = NA, verticals = FALSE, ...)
Arguments
x
a numeric vector of data samples
distn
character string naming the theoretical distribution function
parm
list of theoretical distribution parameters
H
a treshold value
verticals
see 'plot.stepfun'
...
graphical parameters can be given as arguments to plot
Details
The empirical and the theoretical distribution function specified by the arguments
distn and parm are plotted in one single graphic. For truncated data values it is important
to assign the treshold value H.
See Also
ecdf, plot.ecdf, plot.stepfun
Examples
xc <- rnorm(25) # complete sample
xt <- xc[xc >= 0] # left truncated sample
# df of the complete sample
dplot(xc, "pnorm", list(0,1), vertical = TRUE)
# df of the left truncated sample
dplot(xt, "pnorm", list(0,1), H = 0, vertical = TRUE)