Two-stage nonparametric bootstrap sampling with shrinkage correction for clustered data

This article describes a new Stata command, tsb, for performing a stratified two-stage nonparametric bootstrap resampling procedure for clustered data. Estimates for uncertainty around the point estimate, such as standard error and confidence intervals, are derived from the resultant bootstrap samples. A shrinkage estimator proposed for correcting possible overestimation due to second-stage sampling is implemented as default. Although this command is written with cost effectiveness analyses alongside cluster trials in mind, it is applicable to the analysis of continuous endpoints in cluster trials more generally. The use of this command is exemplified with a case study of a cost effectiveness analysis undertaken alongside a cluster randomized trial. We also report bootstrap confidence interval coverage by using data from a published simulation study.

Issue Date:
Publication Type:
Journal Article
DOI and Other Identifiers:
st0288 (Other)
PURL Identifier:
Published in:
Stata Journal, Volume 13, Number 1
Page range:
Total Pages:

Record appears in:

 Record created 2017-04-01, last modified 2017-08-29

Download fulltext

Rate this document:

Rate this document:
(Not yet reviewed)