Counterpoint Statistical Consulting, LLC
  • Home
  • Who We Are
  • What We Offer
  • Books and Software
    • Bayesian Methods for Data Analysis
    • Hierarchical Modeling and Analysis for Spatial Data
    • Bayesian Adaptive Methods for Clinical Trials
    • Software and peer-reviewed literature
  • Contact Us

Selected software and related papers from the peer-reviewed literature; please help yourself!

Chen, N., Carlin, B.P., and Hobbs, B.P. (2018), ``Web-based statistical tools for the analysis and design of clinical trials that incorporate historical controls."  Computational Statistics and Data Analysis., 127, 50--68.
In this case we do not provide code, but instead a link to the online by constructed by Dr. Nan Chen, with component code chunks contributed by Dr. Brian Hobbs.
Paper and Supplementary Content:
cch_final_csda.pdf
File Size: 3323 kb
File Type: pdf
Download File

cch_final_csda_suppcontent.pdf
File Size: 447 kb
File Type: pdf
Download File

Link to online commensurate prior software
(handles Gaussian and survival data):
SMEEACT Online Package
Lewis, C.J., Sarkar, S., Zhu, J., and Carlin, B.P. (2018).  ``Borrowing from historical control data in cancer drug development:  A cautionary tale and practical guidelines."  To appear Statistics in Biopharmaceutical Research.
OpenBUGS code below fits the "full model" in the paper.  This code written by Ms. Connor Jo Lewis in 2017.
Manuscript:
borrowing-historical-control-finalproof.pdf
File Size: 519 kb
File Type: pdf
Download File

OpenBUGS code:
bugs_1cov_arm_3_infprior_bcedits.txt
File Size: 1 kb
File Type: txt
Download File

Data (BUGS format):
all_data_readyandordered.odc
File Size: 20 kb
File Type: odc
Download File

Hong, H., Fu, H., and Carlin, B.P. (2018), ``Power and commensurate priors for synthesizing aggregate and individual patient-level data in network meta-analysis," J. Roy. Statist. Soc., Ser. C (Applied Statistics), 67, 1047--1069.
The supplemental material file contains the JAGS code written by Dr. Hwanhee Hong in 2015-16 to fit the integrative (individual-level plus aggregate-level) data models in the paper.
Manuscript and Supplementary Materials:
hfc_main_proofs.pdf
File Size: 1268 kb
File Type: pdf
Download File

rssc12275-sup-0001-supinfo.pdf
File Size: 339 kb
File Type: pdf
Download File

JAGS code (see Supplementary Materials for full explanation):
adj_i-cp2.jags
File Size: 4 kb
File Type: jags
Download File

adj_i-pp3.jags
File Size: 2 kb
File Type: jags
Download File

adj_i-vague.jags
File Size: 3 kb
File Type: jags
Download File

Schnell, P.M., Tang, Q., Muller, P., and Carlin, B.P. (2017), ``Subgroup inference for multiple treatments and multiple endpoints in an Alzheimer's disease treatment trial," Annals of Applied Statistics, 11, 949--966.
Zip file contains the code and data to compute quantile-based simultaneous credible bands from posterior samples, as well as run the simulation study described in the manuscript.  The NIMBLE R package is also required.  These programs were written by Dr. Patrick Schnell in 2016.
Manuscript:
manuscript-aoas-final-2017-01-30.pdf
File Size: 414 kb
File Type: pdf
Download File

Code:
aoas-code-data.zip
File Size: 17 kb
File Type: zip
Download File

Schnell, P.M., Tang, Q., Offen, W.W., and Carlin, B.P. (2016), ``A Bayesian credible subgroups approach to identifying patient subgroups with positive treatment effects," (with supplementary material ).  Biometrics, 72, 1026--1036.
Zip file contains the R code to reproduce both the Alzheimer's disease example analysis and the simulation study in the paper.  These programs were written by Dr. Patrick Schnell during 2015-16.
Manuscript:
schnellp-credsubs-manuscript.pdf
File Size: 577 kb
File Type: pdf
Download File

Code:
schnellp-credsubs-r-source.zip
File Size: 13 kb
File Type: zip
Download File

Supplementary materials:
schnellp-credsubs-supplement.pdf
File Size: 282 kb
File Type: pdf
Download File

Zhao, H., Hodges, J.S., Ma, H., Jiang, Q., and and Carlin, B.P. (2016), ``Hierarchical Bayesian approaches for detecting inconsistency in network meta-analysis."  Statistics in Medicine, 35, 3524--3536.
Zip file contains the BUGS program (winbug_ABRE.odc) that creates the "AB random effect models" results in Table 3 of the paper.  These programs were written by Dr. Hong Zhao during 2015.
Manuscript:
zhmjc_sim.pdf
File Size: 574 kb
File Type: pdf
Download File

Code:
zhmjc_sim.zip
File Size: 467 kb
File Type: zip
Download File

Hong, H., Chu, H., Zhang, J., and Carlin, B.P. (2016), ``A Bayesian missing data framework for generalized multiple outcome mixed treatment comparisons" (with discussion and rejoinder), Research Synthesis Methods, 7, 6--33.
Zip file contains the WinBUGS code and data necessary to fit all the arm-based (AB) and contrast-based (CB) network meta analysis (NMA) models in the paper.  Code written by Dr. Hwanhee Hong in 2014-15.
Manuscript, discussion, and rejoinder:
hong2015rsm.pdf
File Size: 1289 kb
File Type: pdf
Download File

dias2015rsm_commentary.pdf
File Size: 100 kb
File Type: pdf
Download File

hong2015rsm_rejoinder.pdf
File Size: 81 kb
File Type: pdf
Download File

Code: 
hczc2016.zip
File Size: 1454 kb
File Type: zip
Download File

Murray, T.A., Hobbs, B.P., Sargent, D.J. and Carlin, B.P. (2016). ``Flexible Bayesian survival modeling with semiparametric time-dependent and shape-restricted covariate effects," Bayesian Analysis, 11, 381--402.
Zip file contains the R-JAGS code to replicate each of the three simulation investigations found in Sections 4.1, 4.2, and 4.3 of the paper. These programs were written by Dr. Tom Murray during 2014 and 2015 .
Manuscript: 
revision_ba1407-004.pdf
File Size: 5113 kb
File Type: pdf
Download File

Code:
flexsurv_rcode.zip
File Size: 11 kb
File Type: zip
Download File

Murray, T.A., Hobbs, B.P., and Carlin, B.P. (2015), ``Combining nonexchangeable functional or survival data sources in oncology using generalized mixture commensurate priors," Annals of Applied Statistics, 9, 1549--1570.
Zip file contains the R program (GMCSim.R) that replicates the simulation investigation found in Section 3.2 of the paper. These programs were written by Dr. Tom Murray during 2014; revised in 2015.
Manuscript:
manuscript-aoas840.pdf
File Size: 599 kb
File Type: pdf
Download File

Code:
gmcpriors_simulation.zip
File Size: 169 kb
File Type: zip
Download File

Murray, T.A., Hobbs, B.P., Lystig, T.C., and Carlin, B.P. (2014).  ``Semiparametric Bayesian commensurate survival model for post-market medical device surveillance with non-exchangeable historical data," Biometrics, 70, 185--191.
Zip file contains the BUGS and R code to fit the models in this paper above and produce the paper's analyses of the dialysis patient heart stent data in Figure 1 and Table 2. These programs were written by Dr. Tom Murray during 2013.
Manuscript and Web Supplement:
revised_ms_130138p.pdf
File Size: 431 kb
File Type: pdf
Download File

web_supplement_ms_130138p.pdf
File Size: 540 kb
File Type: pdf
Download File

Code:
spbayesmodel.zip
File Size: 11 kb
File Type: zip
Download File

Quick, H., Banerjee, S., and Carlin, B.P. (2013), ``Modeling temporal gradients in regionally aggregated California asthma hospitalization data," Annals of Applied Statistics, 7, 154--176.
Zip file containing the BUGS and R code to fit the models in this paper above. These programs were written by Dr. Harrison Quick during 2012.
Paper and Web Supplement:
qbc_paper.pdf
File Size: 482 kb
File Type: pdf
Download File

qbc_supplement.pdf
File Size: 302 kb
File Type: pdf
Download File

Code:
qbc_code.zip
File Size: 126 kb
File Type: zip
Download File

Guo, X. and Carlin, B.P. (2004), ``Separate and joint modeling of longitudinal and event time data using standard computer packages,'' The American Statistician, 58, 16--24.
WinBUGS 1.4 program written by Ms. Xu Guo, 3/1/03, to fit "Model XI", the chosen joint (longitudinal plus survival) model in the paper. Full posterior inferential results are obtained via MCMC sampling.
modelxinew.bug
File Size: 37 kb
File Type: bug
Download File

WinBUGS 1.4 program written by Ms. Xu Guo, 6/26/03, to fit "Model XII", a slightly more general joint model that allows the hazard function to vary with time. Full posterior inferential results are obtained via MCMC sampling.  WARNING: This code ignores the time-varying aspect of the survival portion of the model, and must thus be considered approximate!
modelxiinew.bug
File Size: 40 kb
File Type: bug
Download File

WinBUGS 1.4 program written by Mr. Jeremiah Menk for a class project (joint with Ms. Emily Zabor and Ms. Anne Eaton), Spring 2010, to fit "Model XII" with the correct time-varying aspect using the "zeros trick" in WinBUGS.
modelxii_menk.txt
File Size: 50 kb
File Type: txt
Download File

modelxii_menk_results.txt
File Size: 0 kb
File Type: txt
Download File

WinBUGS 1.4 program written by Dr. Michael Sweeting, 7/12/10, also used to correctly fit "Model XII" with the time-varying aspect, this time using the "ones trick" in WinBUGS; results are broadly similar to those obtained using the Menk code!
modelxii_sweeting.txt
File Size: 35 kb
File Type: txt
Download File

modelxii_sweeting_results.txt
File Size: 1 kb
File Type: txt
Download File

SAS Proc SORT, MIXED, LIFEREG, and NLMIXED code written by Dr. Oliver Schabenberger, 3/21/03, to fit Model XI above. Estimation of random effects is now via empirical Bayes, with associated standard errors obtained by the delta method.
longeventexp.sas
File Size: 32 kb
File Type: sas
Download File

SAS Proc SORT, MIXED, LIFEREG, and NLMIXED code written by Dr. Oliver Schabenberger, 6/27/03, to fit Model XII above. Estimation of random effects is again via empirical Bayes, with associated standard errors obtained by the delta method.
WARNING: This code also ignores the time-varying aspect of the model, and so is in principle similar to the original Model XII WinBUGS code above.
longeventexp2.sas
File Size: 29 kb
File Type: sas
Download File

Copyright 2020 Counterpoint Statistical Consulting, LLC

  • Home
  • Who We Are
  • What We Offer
  • Books and Software
    • Bayesian Methods for Data Analysis
    • Hierarchical Modeling and Analysis for Spatial Data
    • Bayesian Adaptive Methods for Clinical Trials
    • Software and peer-reviewed literature
  • Contact Us