Obtaining a copy of STATA


Please make sure you have a copy of the activation key information prior to running Stata for the first time.
Note that the product you are installing is Stata/SE.

To install a copy of STATA 18 on your own machine:

When Stata is installed on your machine, delete the file that you downloaded.


Please do not share STATA. Our site licence is limited and sharing the licence information will jeopardize use of the licence.

If you run into problems or have questions about installing Stata, please contact the ECS Helpdesk by sending email to: helpdesk@econ.duke.edu



Installing Stata For Windows



Initialize the License (Important)


You now need to start Stata and initialize the license. Go to the Stata 18 program group in the Start menu, and click on the Stata/SE icon.


You need to enter the licensing information you received from your class. You must enter the Serial number, Code, and Authorization as provided. If you have them electronically (e.g. on the class web site), they can be copied and pasted. If you type them, be careful. Anything that looks like "o" is the letter oh, anything like "0" is a zero, and anything like "1" is the number one, and anything like "L" is the letter el. They are not case sensitive.


If you make a mistake typing the codes, you will get the message "The serial number, code and authorization are inconsistent." Try the initialization again.


Update Stata


Stata is often updated with new and improved features. You should update Stata regularly.


The first time Stata is launched, a dialog will open asking you if you would like to check for updates now. Click on OK to do so. If an update is available, follow the instructions. If you have trouble connecting to the Internet from Stata, visit http://www.stata.com/support/faqs/web/ for help.


By default, automatic update checking is enabled. This ensures that your Stata is up to date, it is convenient, and it causes no problems even if you are not connected to the Internet. If you disable automatic update checking, it is a good idea to periodically check for updates to Stata. See [GSW] 19 Updating and extending Stata--Internet functionality for more information about updating.



Other ways to start Stata


You can start Stata in multiple ways:



If, after successfully installing STATA/SE and initializing the licence, you experience any problems, see Getting Started with Stata for Windows and read the chapter onTroubleshooting Stata.



Exiting Stata


To exit Stata, select Exit from the File menu or press Alt+F4. If you have made any changes to the data in your dataset, including creating a new dataset, you will be prompted to save the changes.


If you exit Stata by typing the equivalent exit command, you will see the following in the Results window if you have made changes to your data:


. exit
no; data in memory would be lost
r(4);

If you would like to save your changes, you could save the dataset as you save any other file by using File > Save or Ctrl+S. You can also save the dataset by typing save filename. You could then type exit again, and Stata will exit. If you do not wish to save your changes, you can force Stata to exit without saving the dataset by typing exit, clear.







Installing Stata For Mac

Initialize the License


You now need to start Stata so that you can initialize the license. If you added the icon to your doc, click on the Stata doc Icon to launch, otherwise double click the StataSE icon in your Applications folder.


You need to enter the licensing information you received from your class. You must enter the Serial number, Code, and Authorization as provided. If you have them electronically (e.g. on the class web site), they can be copied and pasted. If you type them, be careful. Anything that looks like "o" is the letter oh, anything like "0" is a zero, and anything like "1" is the number one, and anything like "L" is the letter el. They are not case sensitive.


If you make a mistake typing the codes, you will get the message "The serial number, code and authorization are inconsistent." Try the initialization again.



Update Stata if Necessary


Stata is often updated with new and improved features. You should update Stata regularly.


The first time Stata is launched, a dialog will open asking you if you would like to check for updates now. Click on OK to do so. If an update is available, follow the instructions. If you have trouble connecting to the Internet from Stata, visit http://www.stata.com/support/faqs/web/ for help.


By default, automatic update checking is enabled. This ensures that your Stata is up to date, it is convenient, and it causes no problems even if you are not connected to the Internet. If you disable automatic update checking, it is a good idea to periodically check for updates to Stata. See [GSW] 19 Updating and extending Stata--Internet functionality for more information about updating.



Other ways to start Stata


You can start Stata in multiple ways:



If, after successfully installing STATA/SE and initializing the licence, you experience any problems, see Getting Started with Stata for Mac and read the chapter onTroubleshooting Stata.



Exiting Stata


To exit Stata, select Exit from the File menu or press Alt+F4. If you have made any changes to the data in your dataset, including creating a new dataset, you will be prompted to save the changes.


If you exit Stata by typing the equivalent exit command, you will see the following in the Results window if you have made changes to your data:


. exit
no; data in memory would be lost
r(4);

If you would like to save your changes, you could save the dataset as you save any other file by using File > Save or Ctrl+S. You can also save the dataset by typing save filename. You could then type exit again, and Stata will exit. If you do not wish to save your changes, you can force Stata to exit without saving the dataset by typing exit, clear.