SVYLET: Stata module to perform Wald omnibus F-test, Bonferroni, and Compact Letter Display for means/proportions/totals under svy
Andres Talavera Cuya ()
Additional contact information
Andres Talavera Cuya: Direccion Nacional de Censos y Encuestas -- INEI Peru
Statistical Software Components from Boston College Department of Economics
Abstract:
svylet tests whether a mean, proportion, or total differs across the categories of an over() variable (e.g., survey year) under a complex survey design, and reports the result as a Compact Letter Display (CLD) -- the familiar Tukey/Duncan-style letter grouping from agronomic ANOVA post-hoc tables (categories sharing a letter are not significantly different), adapted here to a design-based Wald test rather than classical ANOVA. It reports a design-based Wald omnibus F-test (with the Korn & Graubard 1990 small-sample adjustment, matching Stata's own default for test/testparm after svy:), all pairwise comparisons with Bonferroni correction, and the resulting letter groups. All three stat() modes share one Mata engine that operates directly on e(b)/e(V)/e(df_r), so the same code works after svy: mean, svy: proportion, and svy: total without depending on margins/testparm chaining correctly after non-regress estimation commands. An optional boot() setting recalibrates the omnibus F-test by prepivoting (Beran 1988), using a bootstrap that resamples the pooled observations across over() categories (Rao, Wu & Yue 1992; Beaumont & Patak 2012) and reassigns group labels at random to enforce the null hypothesis in the resampling itself (Hall & Wilson 1991).
Language: Stata
Requires: Stata version 14
Keywords: Wald; Bonferroni; means; proportions; totals; complex survey data (search for similar items in EconPapers)
Date: 2026-08-20, Revised 2026-08-28
Note: This module should be installed from within Stata by typing "ssc install svylet". The module is made available under terms of the GPL v3 license.
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/s/svylet.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/s/svylet.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/s/svylet_es.sthlp help file (text/plain)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459865
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().