Ancillary Files Stata Tutorial

Ancillary Files Stata Tutorial Average ratng: 5,7/10 2238 votes

A “do-file” is the text document that allows you to submit more than one command to Stata at once. Stata allows you to have more than one do-file opened at a time. This is a big plus because it makes it easy to copy and paste from other project do-files into the current do-file.

Ancillary files stata tutorial for beginners
Active5 years, 5 months ago

If I publish an .ado package for Stata, I can include .dta files among the installation files in the .pkg description file, using a line like:

However, it is not clear how, other than by navigating to an out-of-the-way directory for user-selected add-on packages how users can load these data. For example, is there a way to make data files for .ado files available with commands like:

Ancillary
AlexisAlexis

2 Answers

You have found the documentation for package files, so this seems to be a question in the first instance about whether sysuse marches with installations of user-written packages, and the short answer is an emphatic No.

Ancillary Files Stata Tutorial Pdf

Stata

sysuse is intended as a quick-and-easy way for Stata users to access datasets made available by StataCorp to support official commands. I have not tried it, but my guess is that sysuse would work with any dataset so long as that dataset was placed in the directories searched by Stata.

However, I would argue that would be very poor style. When Stata programmers publish a package centred on programs and their help files, they often make test datasets available, but the best standard is to mark such files as ancillary and let users download them to a location of their own choice using net get. As said, this is a choice.

The argument can be strengthened. It's best practice to keep StataCorp's own files and other files strictly segregated. That way, updates and upgrades, copying files to other machines, etc. all are much less likely to get confused or tangled given some clash of names. Most likely, you might install or reinstall Stata and 'forget' that you had user-written stuff mixed in with StataCorp's own files and waste time trying to find it.

In any case, for sysuse to work like this, users would have to install files manually in the place(s) searched by Stata, as Stata's download commmands would not do that automatically.

As for 'out-of-the-way', this is not for you to decide. Many users have very strict personal or workplace rules that each project requires quite different directories or folders, so placing files only where they can be found quite deliberately is, in their own terms, a very good idea. Otherwise put, the net get mechanism implies that users decide, carefully or not, where files are to go. Users also have the scope to manipulate their adopath should they wish to supplement Stata's rules on where it searches.

Nick CoxNick Cox

Ancillary Files Stata Tutorial For Beginners

26.2k4 gold badges22 silver badges43 bronze badges

Turns out that I misunderstood the installation process, and that the functionality I desire is in Stata. I had assumed that the data files were automatically installed, but see now that they are considered ancillary, and require additional explicit installation. When this is done, the user gains access by simply typing, for example, use amazingdata. Done. Simple!

Econometrics fumio hayashi djvu free. [PDF] econometrics fumio hayashi (Full Book Download) - econometrics fumio hayashi solution manual, free software econometrics fumio hayashi djvu, fumio hayashi econometrics pacificrutracker, fumio hayashi econometrics pdf free published on, co jp econometrics fumio hayashi 洋書. [PDF] econometrics fumio hayashi (Full Book Download) - free software fumio hayashi econometrics, fumio hayashi econometrics pacificrutracker, co jp. Econometrics Hardcover 2000 Author Fumio Hayashi, Econometrics By Fumio Hayashi, Free Software Econometrics Fumio Hayashi Djvu, Flip To Back Flip To Front,. Whether you are engaging substantiating the ebook Econometrics [Kindle. Edition] By Fumio Hayashi in pdf arriving, in that mechanism you forthcoming onto the equitable site. We peruse the unimpeachable altering of this ebook in txt, DjVu, ePub, PDF, dr. You navigational itemize Econometrics. [Kindle Edition].

Nick Cox
26.2k4 gold badges22 silver badges43 bronze badges
AlexisAlexis

Not the answer you're looking for? Browse other questions tagged stata or ask your own question.

Posted on