Generate

We suspect that generate (or gen, for short) is perhaps one of the commands that you will use the most in Stata. We have already applied it in several parts of the guide, and here are some additional alternatives.

More information
help generate