BNPdensity (version 2019.9.11)

GOFplots: Plot Goodness of fits graphical checks for censored data

Description

Plot Goodness of fits graphical checks for censored data

Usage

GOFplots(fit, qq_plot = FALSE, thinning_to = 500)

Arguments

fit

The result of the fit, obtained through the function MixNRMI1 or MixNRMI2, MixMRMI1cens or MixMRMI2cens

qq_plot

Whether to compute the QQ-plot

thinning_to

How many iterations to compute the mean posterior quantiles

Value

A density plot, a cumulative density plot with the Turnbull cumulative distribution, a percentile-percentile plot, and potentially a quantile-quantile plot.

Examples

Run this code
# NOT RUN {
set.seed(150520)
data(salinity)
out <- MixNRMI1cens(salinity$left, salinity$right, extras = TRUE, Nit = 100)
GOFplots(out)
# }

Run the code above in your browser using DataCamp Workspace