plot.bhrcr: Bayesian Clearance Estimator Plotting

Description Usage Arguments Details Value Author(s) Examples

Description

plot.bhrcr plots the posterior results from clearanceEstimatorBayes.

Usage

1
2
3
## S3 method for class '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

Details

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

Value

the directory location under which all the plots are saved.

Author(s)

Colin B. Fogarty <cfogarty@mit.edu>, Saeed Sharifi-Malvajerdi <saeedsh@wharton.upenn.edu>, Feiyu Zhu <feiyuzhu@sas.upenn.edu>

Examples

1
2
3
4
5
6
7
8
9
data("posterior")
plot(posterior)


data("pursat")
data("pursat_covariates")
out <- clearanceEstimatorBayes(data = pursat, covariates = pursat_covariates, 
                               niteration = 200, burnin = 50, thin = 10)
plot(out)

bhrcr documentation built on May 1, 2019, 8:41 p.m.