Learn R Programming

bhrcr (version 1.0.3)

plot.bhrcr: Bayesian Clearance Estimator Plotting

Description

plot.bhrcr plots the posterior results from clearanceEstimatorBayes.

Usage

# S3 method for bhrcr
plot(x, plot.post = T, id.plot = NULL, thin = NULL,
  ...)

Arguments

x

output given by clearanceEstimatorBayes

plot.post

indicator of whether or not the posterior samples should be plotted

id.plot

patients' IDs

thin

an optional vector showing which posterior samples to be plotted

...

additional arguments passed to the plot.bhrcr function

Value

the directory location under which all the plots are saved.

Details

This function plots clearance profile of each individual along with their fitted Bayesian model, Flegg's PCE estimates, and posterior samples.

Examples

Run this code
# NOT RUN {
data("posterior")
plot(posterior)
# }
# NOT RUN {
data("pursat")
data("pursat_covariates")
out <- clearanceEstimatorBayes(data = pursat, covariates = pursat_covariates, 
                               niteration = 200, burnin = 50, thin = 10)
plot(out)
# }

Run the code above in your browser using DataLab