11.07.2015 Views

[U] User's Guide

[U] User's Guide

[U] User's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

[ U ] 17.5 Where does Stata look for ado-files? 197or. viewsource logistic.ado*! version 3.4.7 25jun2009program define logistic, eclass prop(or svyb svyj svyr swml mi) byable(onecall)version 6.0, missing(output omitted )endThe type command displays the contents of a file. The viewsource command searches for a filealong the ado directories and displays the file in the Viewer. You can also look at the correspondinghelp file in raw form if you wish. If there is a help file, it is stored in the same place as the ado-file:or. type "C:\Program Files\Stata11\ado\base\l\logistic.sthlp", asis{smcl}{* *! version 1.2.9 26jun2009}{...}{cmd:help logistic}{right:dialogs: {dialog logistic} {dialog logistic,> message(-svy-) name(svy_logistic):svy: logistic}}{right:also see: {help logistic postestimation}}{hline}(output omitted ). viewsource logistic.sthlp{smcl}{* *! version 1.2.9 26jun2009}{...}{cmd:help logistic}{right:dialogs: {dialog logistic} {dialog logistic,> message(-svy-) name(svy_logistic):svy: logistic}}{right:also see: {help logistic postestimation}}{hline}(output omitted )17.5 Where does Stata look for ado-files?Stata looks for ado-files in seven places, which can be categorized in three ways:I. The official ado directories:1. (UPDATES), the official updates directory containing updated ado-files from StataCorp2. (BASE), the official base directory containing the ado-files shipped with your version ofStataII. Your personal ado-directories:3. (SITE), the directory for ado-files your site might have installed4. (PLUS), the directory for ado-files you personally might have installed5. (PERSONAL), the directory for ado-files you might have written6. (OLDPLACE), the directory where Stata users used to save their personally written ado-filesIII. The current directory:7. (.), the ado-files you have written just this instant or for just this projectThe location of these directories varies from computer to computer, but Stata’s sysdir commandwill tell you where they are on your computer:. sysdirSTATA:UPDATES:BASE:SITE:PLUS:PERSONAL:OLDPLACE:C:\Program Files\Stata11\C:\Program Files\Stata11\ado\updates\C:\Program Files\Stata11\ado\base\C:\Program Files\Stata11\ado\site\C:\ado\plus\C:\ado\personal\C:\ado\

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!