demo/fastExample.R

library(bhrcr)
data(pursat)
data(pursat_covariates)
# Try it out for smaller number of iterations.
# For reproducibility, set seed = 1234.
out <- clearanceEstimatorBayes(data = pursat,covariates=pursat_covariates, seed=1234, 
                               detect.limit = 15, burnin=50, niteration=100, thin=10)

summary(out)
print(out)

# diagnostic plots of the Bayesian analysis
diagnostics(out)

# plot patients' profiles
plot(out)

Try the bhrcr package in your browser

Any scripts or data that you put into this service are public.

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