Click ejercicios_stata.pdf link to view the file.