Stata Basics: Create, Recode and Label Variables Oct 14, 2016 ... -generate-: create variables ... Here we use the -generate- command to create a new variable representing population younger than 18 years old. We ...