BNPdensity (version 2023.3.8)

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, ...)

Value

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

Arguments

x

An object of class multNRMI

...

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

Examples

Run this code
# \donttest{
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