plot.dlc {logcondens} | R Documentation |
Standard plots for a dlc object
Description
plot
method for class "dlc"
.
Three plots (selectable by which
) are currently available: a plot of the estimated density,
the estimated log-density, or the distribution function corresponding to the estimated log-concave density.
By default, a plot of the density estimate is provided. If smoothed = TRUE
, the smoothed version of
the log-concave density estimate (saved in x
) is added to the density and log-density plot.
For the CDF, the smoothed version is not contained by default in a dlc
object and needs to be computed
when asked to be plotted.
Usage
## S3 method for class 'dlc'
plot(x, which = c("density", "log-density", "CDF"),
add.title = TRUE, legend.pos = "topright", ...)
Arguments
x |
An object of class |
which |
One of |
add.title |
Logical, if |
legend.pos |
Placement of the legend. One of |
... |
Further arguments. |
Details
See activeSetLogCon
and evaluateLogConDens
for details on the computations.
Value
Chosen plot is generated.
Author(s)
Kaspar Rufibach, kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch
Lutz Duembgen, duembgen@stat.unibe.ch,
https://www.imsv.unibe.ch/about_us/staff/prof_dr_duembgen_lutz/index_eng.html
References
Duembgen, L, Huesler, A. and Rufibach, K. (2010). Active set and EM algorithms for log-concave densities based on complete and censored data. Technical report 61, IMSV, Univ. of Bern, available at https://arxiv.org/abs/0707.4643.
Duembgen, L. and Rufibach, K. (2009). Maximum likelihood estimation of a log–concave density and its distribution function: basic properties and uniform consistency. Bernoulli, 15(1), 40–68.
Duembgen, L. and Rufibach, K. (2011) logcondens: Computations Related to Univariate Log-Concave Density Estimation. Journal of Statistical Software, 39(6), 1–28. doi:10.18637/jss.v039.i06
Examples
## See help file of function "logConDens".