dplot: Plot of the distribution functions

Description Usage Arguments Details See Also Examples

Description

Plot the empirical against the theoretical distibution function.

Usage

1
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

1
2
3
4
5
6
7
8
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)

truncgof documentation built on May 1, 2019, 10:54 p.m.

Related to dplot in truncgof...