plot.multNRMI {BNPdensity}R Documentation

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 class '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


data(salinity)
fit <- multMixNRMI2cens(salinity$left, salinity$right, parallel = TRUE, Nit = 10, ncores = 2)
plot(fit)


[Package BNPdensity version 2023.3.8 Index]