Postfile can be used to generate new, computed datasets and to subset data into new datasets in Stata. |
There is an awesome command in Stata you may not yet have heard of called postfile. It lets you create Stata datasets. It can be used for a variety of tasks:
- For creating subsets of your data.
- For building datasets of generated statistics.
- For Monte Carlo-type experiments.