Technical note: If you try to install a edition of Stata different from the one you purchased, you will receive an error later on, and Stata will not work on your computer. Then you will have to uninstall and reinstall Stata with the correct settings to resolve the issue.
Select a Destination Folder. Stata will choose one automatically. If it does not exist, Stata will create it. If you wish to have Stata installed somewhere else, click on Browse to navigate to that location.
If you want to install Stata on a network drive, you will need a network license. You can install Stata from the server, or if you have the appropriate privileges, you can install Stata directly to the network drive.
If you would like to modify your installation or install other editions of Stata, you can run the installer again. It will bring up the Application Maintenance dialog. Check Modify and click on Next. You can then choose the edition or editions of Stata that you would like to add.
I am a college student and my class requires me to use stata. However, being in Corona time I have 2 different places that I work on school work and have 2 computers that I use. I will be the only one using stata on these computers and they will never be used at the same time.
The result tells us that no Python installations were found, so I will need to install Python. You may need to consult your system administrator if you are not the owner or administrator of the computer you are using.
After you download the installation file, simply run it and follow the setup instructions. I have recorded a video that shows how to download and install Python for Windows 10 on a 64-bit computer. You can watch the video on the Stata YouTube Channel.
Python is also included in an open-source development environment called Anaconda. Many people prefer Anaconda because it automatically installs and manages many Python packages during installation. You can download the appropriate Anaconda installation file at the Anaconda download website. Anaconda is also available for Linux, Mac, and Windows, and you should select the 64-bit installation file that corresponds to your operating system. After you download the installation file, simply run it and follow the setup instructions. I have recorded a video that shows how to download and install Anaconda for Windows 10 on a 64-bit computer. You can watch the video on the Stata YouTube Channel.
I have installed both Python 3.8 and Anaconda 3.0 on my computer. I can tell Stata which Python installation I wish to use with the set python_exec command. The example below tells Stata that I wish to use Python 3.8.
It worked! This blog post is the first in a series that I am writing to show you how to use Python within Stata. My goal is to provide a basic foundation so that you will have the skills to explore Python packages that are useful to you. This post demonstrated how to install Python and set up Stata to use Python. In my next post, I will demonstrate several ways to use Python from within Stata.
This application is KeyServed and requires KeyAccess be installed on your computer, as well as a connection to the Dartmouth network each time you run Stata. If not on campus, you will need to establish a VPN connection. The current version is Stata 18. Older versions of the installer are still recognized by the KeyServer, and available on the Stata downloads page.
Make sure that you install the corresponding version of Python. The highlighted one (x86-64) is the 64 bit. The other one (x86) is the 32-bit version. For this example, since I have the 64-bit version of stata, I installed the x86-64, 64-bit version of Python.
First, install node.js. Download here. I checked the box in the node.js install to also install additional software. At the end of the install, it pops open Windows powershell window and installed a bunch of stuff, including Python if you do not have the current version. It also installs Chocolatey and a few other things. NOW STOP HERE AND REBOOT YOUR COMPUTER. Come back when it restarts.
You might also need to configure Jupyter to work with your Stata install. Details are here. I found the configuration file named .stata_kernel.conf sitting in this folder: C:\Users\MYUSERNAME\.stata_kernel.conf
In addition to loading the Statamarkdown package,you may need to specifythe location of the Stata executable. An attempt hasbeen made to automate this for recentversions of Stata (>= Stata 11) that are installed in thedefault location.
With great thanks to all those who kindly volunteered to test the beta version and have provided valuable suggestions for improvement, I am pleased to report that kobo2stata is now publicly available from the SSC. Please see my full announcement here: -kobo2stata-new-on-ssc/
You cannot output data from Kobo directly as a Stata file. But you can export your data and form as Excel and then use the kobo2stata command in Stata to automate the import/conversion of those into a labelled Stata format.
I am using the command texdoc on stata to generate LaTex code. However, whenever I try running the code using pdfLaTex on TexWorks, I get an error saying that the package stata.sty could not be found when I try to use package stata. The code looks something like:
I have tried changing document class to statapress and using various other packages such as pagedims and sj, based on suggestions on this forum, but it doesn't seem to help. I also tried installing sjextra on stata, but that doesn't work either. Any suggestions would be greatly appreciated!
As the stata package and sjlatex are not developed by stata, and are thus not subject to being explained over there, I will provide a tutorial to link the two here. I hope this works out for you, otherwise you can always pay a visit to the link below and you might detect an error in the tutorial or just notice what you did wrong during following this tutorial. Any comments appreciated. If the tutorial becomes outdated, please let me know or feel free to update it. I do not own a recent license of Stata any more, so I probably won't be able to update it myself, I guess.
I don't compile stata-texdoc file on my Linux machine, but the process is very similar, except that you can't install stata on Linux and thus don't need to install texdoc in Stata for Linux (which doesn't exist). I don't compile stata-texdoc file on my Linux machine, so, I won't provide a tutorial for it. It would be hit or miss. You're welcome to add your Linux tutorial here or as a separate answer.
This document describes how external text editors can be integrated with Stata in a way similar to the Do-File Editor. Two free programs are offered for this purpose: rundolines.exe allows the execution of selected Stata commands from an external editor, and rundo.exe allows the execution of complete Stata do-files from an external editor. Both programs can be installed and used together or individually. I recommend installing only rundolines because it can serve the same purpose as rundo (see the explanation in section 4).
After the programs have been successfully installed, Stata commands can be executed directly from the text editor. In the case of Notepad++, press F10 (or any other assigned shortcut) to run a saved Stata do-file. To run only a few commands, highlight the relevant lines in the editor and then press F9 (or any other assigned shortcut). To run an entire do-file with rundolines, select all commands in the text editor (for example by pressing Ctrl+A in Notepad++) and then press F9 (or any other shortcut assigned to rundolines).
Known problem 3: After an update of Stata, for example from version 15.0 to version 15.1, the rundo and rundolines programs may stop functioning if the title of the Stata window has changed (see Figures 1 and 2). If this is the case, edit the statawin entries in the rundo.ini and rundolines.ini files to reflect the correct window title (for example, replace "15.0" by "15.1").
Troubleshooting: The rundo and rundolines programs should function properly if the installation instructions are followed exactly. If the programs do not work, please use the steps below to test your setup. I recommend testing the rundolines program first because its internal code is less complicated than the code for the rundo program.
This program makes life so much easier....
However I recently ran into some problems. I installed it on a different computer and suddenly rundolines won't allow more than 100 lines, if I select more it simply takes the first couple of lines. Any idea what might cause the problem? Thanks for your help.
stefan_...@hotmail.com
Stefan, it is difficult to diagnose the problem from your description. Did you install the latest version of the program and did you follow the instructions above? Please send me an email with more information about your setup (version of Stata, text editor, operating system) and attach your INI file. Thanks.
Foote, the problem you encountered only affects rundo, not rundolines. A few users have reported this problem with rundo and without exception they were able to solve it by following the instructions under Step 3. Please confirm that the entry in the Run box of Notepad++ is indeed exactly the following text (with a different path to rundo.exe, if applicable):
"C:\ado\personal\rundo.exe" "$(FULL_CURRENT_PATH)"
If rundo still does not work I would recommend that you restart the installation and make sure that you follow all instructions above.
Hi Friedrich,
Having trouble with the installation. Have done the troubleshooting steps, and seems to fail at the first part, where even when stata is opened before notepad++ it doesn't work.
1. Is it necessary to set-up both scripts for rundolines to work? I only set up rundolines.
2. I was looking at the script in the .au3 file - and the stata directory and stata title designations were not my own - should I modify those to match my directory and stata version?
Thanks,
rs