Open stata 13 file in stata 12
If there were a large number of files you wished to download and unzip, and they were all named in a regular manner (say, “download1.zip” through “download100. The Stata file is located on Microsoft Windows where PC Files Server is running. Note that SAS is running on a UNIX platform. This example imports data from a Stata file named CUSTOMER.DTA to a SAS data set named WORK.CUSTOMER. Putting all of those capabilities to use, you can accomplish Andrew’s goal by writing code directly in Stata such as copy download1.zip Example 4: IMPORT Data from a Stata File on Microsoft Windows to a SAS Data Set on UNIX. Then save the file in STATA format (Ill save mine as 'C:weco.dta'). ForStata13.dta (16.0 KB, 1 view) Last edited by William Lisowski, 11:48.
Open stata 13 file in stata 12 upgrade#
Then you open STATA and type: infile y sex dex lex kwit tenure censored using 'C:weco.dat' Drop the first line of the data set containing missing values due to the labels in the. The general answer to your question, though, remains as Rich said: to read Stata 14 datasets, you must either upgrade Stata or purchase the current version of StataTransfer. And, as of Stata 11, Stata can directly zip and unzip files and directories. preferred directory (Ill save mine as 'C:weco.dat'). In fact, we have built some tools into Stata to allow you to do much of what Andrew described without ever having to leave or shell out of Stata.įor example, Stata can access files over the Internet. Here is how you can create do-files without having to bother with interactive work. We here at StataCorp use Stata for tasks like this all the time. He goes on to show how you can script with Stata to automate shelling out to download and unzip a series of files from a website, and he introduces you to some cool Unix-like utilities for Windows.
![open stata 13 file in stata 12 open stata 13 file in stata 12](https://www.fragilefamilieschallenge.org/wp-content/uploads/2017/05/data-1-e1495720195899.png)
I’ve found that the process can be automated from within Stata by using a combination of -shell- and some handy terminal commands. Also, when the maps are updated, I’d have to do the download/uncompress all over again. I could manually download each file and uncompress each one but that would be time consuming.
![open stata 13 file in stata 12 open stata 13 file in stata 12](https://www.predictiveanalyticstoday.com/wp-content/uploads/2016/10/Stata-1000x691.png)
There were several compressed shapefiles I wanted to download contained in a directory from the web.
![open stata 13 file in stata 12 open stata 13 file in stata 12](https://3nlm2c1gjj0z2ju16293909h-wpengine.netdna-ssl.com/wp-content/uploads/2016/07/free-statistical-analysis-software-mac-numbers-1024x639.jpg)
Recently, I’ve been using Stata’s -shp2dta- command to convert some shapefiles to stata format, grabbing Lat/Lon data and merging into another dataset.
Open stata 13 file in stata 12 how to#
Dyck wrote a nice post on his blog on how to Download and unzip data files from Stata.