Mathematics for Social Science

Mathematics for Social Science

Instructions on completing assignments

Opening Stata data and syntax files

Dr Valeria Skafida

Mathematics for Social Science A quick guide on completing assignments

Opening Stata data and syntax files

First open Citrix.
Through Citrix launch Stata.
Through Stata, open the dataset you want to open (assuming it is stored on your University Home
Drive). Click on the yellow folder, as shown below and locate a relevant Stata dataset in your home
drive.

You will now see a list of variables in your top right corner.
No to open a syntax file, click on WindowDo-file EditorNew Do-file Editor, as shown below.

Once your syntax file (do-file) has launched, I would recommend minimising the two Stata windows so
you can see both simultaneously on your screen (see overleaf). This is because you should type and run
commands in your syntax file window, and view the results displayed in the main Stata window.
Please see screenshot below and the instructions in the comment boxes in red.

Mathematics for Social Science A quick guide on completing assignments

Mathematics for Social Science A quick guide on completing assignments
You can also open an existing syntax file as shown below if you want to have it handy in order to copy
paste existing syntax you have in another syntax/do-file. For example, you may want to use commands
from the LFS2013_syntax file for the first ongoing Assessment.

You would follow the above steps when opening a syntax file that has been prepared to be used with a
specific dataset. That is, open the dataset first and then use the steps in this document to open the
specific syntax file you need. This means you will not need to amend the path of where your data is
located in the syntax file itself.