Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 390 Bytes

File metadata and controls

6 lines (4 loc) · 390 Bytes

PowerSim

Code and output supporting a working StableMarkets post about p-values.

The code creates a data-generating process. The simulation then continually generates data from this DGP, runs a univariate regression, and extracts the p-value of the beta coefficient.

The regression is repeated for betas of different sizes in the DGP (effect size) and multiple sample sizes of the DGP.