Stata download and unzip file






















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. For example, Stata can access files over the Internet.

Stata has a copy command. And, as of Stata 11 , Stata can directly zip and unzip files and directories. Home About. Categories: Programming Tags: copy , scripting , tips , unzip , zip. New Wooldridge edition just made available Competing risks in the Stata News. RSS Twitter Facebook. Subscribe to the Stata Blog Receive email notifications of new blog posts. Being lazy, I wanted to:. But, I was able to use DownloadThemAll!

Given 1 a source folder where zip files are stored and 2 a folder into which to unzip them, the program goes file-by-file, unzipping each zip file it finds. Finally, the program deletes all unzipped files the stuff I care about has been copied elsewhere as well as the original zip files. Now I can use this for any DHS files with standard file format names. The next time a survey comes out, I just download all the zip files into a one folder, run my do-file, and relax.

Visit the page containing the datasets you want. Assuming you want more than one survey type household, child, etc.



0コメント

  • 1000 / 1000