dplot {truncgof} | R Documentation |
Plot the empirical against the theoretical distibution function.
dplot(x, distn, parm, H = NA, verticals = FALSE, ...)
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 |
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
.
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)