BNPdensity (version 2019.9.11)

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

Description

The density estimate is the mean posterior density computed on the data points.

Usage

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

Arguments

x

An object of class multNRMI

...

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

Value

A graph with the density estimate, the 95% credible interval. Includes a histogram if the data is non censored.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
data(salinity)
fit <- multMixNRMI2cens(salinity$left, salinity$right, parallel = TRUE, Nit = 10, ncores = 2)
plot(fit)
# }

Run the code above in your browser using DataLab