EconPapers    
Economics at your fingertips  
 

Power and sample size by simulation

Alex Asher
Additional contact information
Alex Asher: StataCorp

UK Stata Conference 2025 from Stata Users Group

Abstract: Stata's built-in power command accepts user-deRned programs to calculate power, sample size, or effect size. Power can be estimated by simulation, even in complex scenarios where there is no closed- form expression. To estimate sample size given power, multiple simulations are needed. This talk describes how to use simulation to estimate power and sample size using the power command. Learn how to do the following: Write simulation programs that are compatible with all the features of power, ciwidth, and gsdesign Customize graphs and tables using an initializer Control Monte Carlo errors Estimate sample size using the bisection method

Date: 2025-09-04
References: Add references at CitEc
Citations:

Downloads: (external link)
http://repec.org/lsug2025/

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:lsug25:14

Access Statistics for this paper

More papers in UK Stata Conference 2025 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-09-13
Handle: RePEc:boc:lsug25:14