plot.KRKM: Plot method for KRKM objects

Description Usage Arguments Author(s) See Also Examples

Description

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

Usage

1
2
3
## S3 method for class '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.

Author(s)

Yuchen Yang, Li Chen

See Also

KRKM

Examples

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

KENDL documentation built on May 2, 2019, 3:42 a.m.

Related to plot.KRKM in KENDL...