Confidence intervals for rank statistics: Percentile slopes, differences, and ratios

I present a program, censlope, for calculating confidence intervals for generalized Theil–Sen median (and other percentile) slopes (and per-unit ratios) of Y with respect to X. The confidence intervals are robust to the possibility that the conditional population distributions of Y , given different values of X, differ in ways other than location, such as having unequal variances. censlope uses the program somersd and is part of the somersd package. censlope can therefore estimate confounder-adjusted percentile slopes, limited to comparisons within strata defined by values of confounders, or by values of a propensity score representing multiple confounders. Iterative numerical methods have been implemented in the Mata language, enabling efficient calculation of percentile slopes and their confidence limits in large samples. I give example analyses from the auto dataset and from the Avon Longitudinal Study of Pregnancy and Childhood (ALSPAC).

Issue Date:
Publication Type:
Journal Article
DOI and Other Identifiers:
snp15_7 (Other)
Record Identifier:
PURL Identifier:
Published in:
Stata Journal, Volume 06, Number 4
Page range:
Total Pages:

Record appears in:

 Record created 2017-04-01, last modified 2018-01-22

Download fulltext

Rate this document:

Rate this document:
(Not yet reviewed)