May I add:
1) Generating Variables with -by- in combination with _n, _N and explicit
subscribts: You have a serious data-managment problem? Think -by-!
2) Saved Results: I use them all the time and evererywhere!
3) file: You want your output ready for publication? -file- is your friend!
4) postfile: When I made my diploma I did not know anything about postfiles. I
printed dozens of output, underlined specific results in that output with a
yellow marker and typed that output into a Lotus 1-2-3 spreadsheet. Than I
transfered that spreadsheet ot Stata and made some graphs. I than realized
that I made a mistake and start again. It took me 6 months. Lately I made a
similar analysis. I used -postfile-. I took me 2 hours.
5) profile.do: Here is mine
---------------------------profile.do
set matsize 200
set memory 60m
set scheme s1color
global F4 "dir *.dta ;"
global F5 "dir *.do ;"
global F6 "cd ~/pub/"
global F7 "cd ~/pub/kkstata1e ;"
global F9 "do _marked;"
global dublin "~/data/dublin"
global em "~/data/em"
global issp "~/data/issp98"
global kkstata "~/pub/kkstata1e/kkstata"
global kkmain "~/pub/kkstata1e/"
global mas "~/data/mas"
global soep19 "~/data/gsoep19"
global stata "~/data/stata"
exit
-----------------------------------------------
6) capture ;-)
On Sun, 23 May 2004, Nick Cox wrote:
> On Friday 21 May 2004 I asked
>
> Which would we nominate as (say) the top ten tricks which are the
> deepest and most Stataish features in what we use? What is _both_
> simple _and_ deep? What leads to great results with at most a few
> lines of code?
>
> ...
>
> I'd nominate straight away
>
> 1. -by:-.
>
> 2. -foreach- or -forval- with varlists or numlists.
>
> 3. -merge-. I rarely use it but -merge-masters have real leverage
> in file manipulations.
>
> 4. -assert-. My candidate for the most underestimated command in
> Stata (second is -count-).
>
> 5. -reshape-.
>
> Any other nominations?
--
[email protected]
+49 (030) 25491-361
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/