BNPdensity (version 2019.9.11)

plot.NRMI1cens: Plot the density estimate and the 95% credible interval

Description

The density estimate is the mean posterior density computed on the data points. It is not possible to display a histogram for censored data.

Usage

# S3 method for NRMI1cens
plot(x, ...)

Arguments

x

A fitted object of class MixNRMI1cens

...

Further arguments to be passed to generic functions, ignored at the moment

Value

A graph with the density estimate, the 95% credible interval

Examples

Run this code
# NOT RUN {
data(salinity)
out <- MixNRMI1cens(salinity$left, salinity$right, Nit = 50)
plot(out)
# }

Run the code above in your browser using DataCamp Workspace