KENDL (version 1.1)

plot.KRKM:

Description

Plot the estimated cumulative distribution function obtained by the KRKM function.

Usage

# S3 method for KRKM
plot(x, conf.int = TRUE, lty = 1, col = 1, lwd=1, xlim=NULL, ylim =
NULL, log="x", xlab = NULL, ylab = "CDF", …)

Arguments

x
An object of class KRKM which is returned by the KRKM function.
conf.int
Determines whether confidence intervals will be plotted. The default value is TRUE.
lty
An integer specifying line type. The default value is 1.
col
An integer specifying color type. The default value is 1.
lwd
A numeric value specifying line width. The default value is 1.
xlim
A vector specifying the lower and upper boundaries for x values.
ylim
A vector specifying the lower and upper boundaries for y values.
log
One of the standard character strings "x", "y", or "xy" to specify logarithmic horizontal and/or vertical axes. The default value is "x". Use log="" to specify no logarithmic scale used for either horizontal or vertical axes.
xlab
Label given to the x-axis with NULL as default.
ylab
Label given to the y-axis with "CDF" as default.
Other arguments allowed for the general plot function.

See Also

KRKM

Examples

Run this code
# simulated data set from a lognormal regression model
 lod <- exp(rnorm(200, -2.79, 1.12))
 e   <- rnorm(200, 0 , 1.21 )
 t   <- exp(-3.05+0.42*lod+e)
 obs <- pmax(t, lod)
 bdl <- t<lod
# KRKM estimator 
 fit <- KRKM(obs=obs, bdl=bdl, lod=lod)
 plot(fit)

Run the code above in your browser using DataLab