EconPapers    
Economics at your fingertips  
 

CLUSTERDID: Stata module providing power analysis for cluster randomized trials, difference-in-differences sample size, and repeated cross-sections

Wael Moussa ()
Additional contact information
Wael Moussa: FHI 360

Statistical Software Components from Boston College Department of Economics

Abstract: clusterdid establishes a generalized, parallel-group difference-in-differences (DiD) cluster randomized trial framework observed over a longitudinal panel of T = T0 + T1 periods. It integrates the multi-way and nested error component models from Baltagi (2021) to capture permanent and time-varying cluster shocks. Unlike legacy power commands restricted to single post-treatment snapshots or purely standardized metrics, clusterdid natively accommodates multi-period repeated cross-sections, allowing researchers to evaluate how expanding baseline and endline tracking horizons mathematically reduces the variance multiplier.

Language: Stata
Requires: Stata version
Keywords: power analysis; DiD; randomized trial (search for similar items in EconPapers)
Date: 2026-05-24
Note: This module should be installed from within Stata by typing "ssc install clusterdid". The module is made available under terms of the MIT license (https://opensource.org/licenses/MIT).
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/c/clusterdid.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/clusterdid.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:s459723

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 ().

 
Page updated 2026-05-25
Handle: RePEc:boc:bocode:s459723