Turns out anything you can display -- or di -- on the screen, you can also send to a macro to use later. How useful is that? Well, sometimes you need to say the same thing in different ways. The macro may be set to capture either the form or the substance, depending on which [...]
Archives for posts tagged ‘date and time functions’
Masks
Thursday, 4 December 2008
One way to get free Stata help is to post your question to the Statalist. A dedicated band of Stata users will go at it like a school of hungry piranhas at a drowning zebu, and odds are excellent that whatever baffled you will be ripped apart practically while you watch. Another is to just [...]
Leading zeroes
Tuesday, 11 November 2008
I am working on a project where occasionally I need to keep time using dates in the format YYYYMMDD. I sometimes also need to move back and forth between these dates and numeric year, month, day, which requires things like turning the numeric month 1 into the string "01".
The general syntax for turning numbers to [...]
Cheap Iceland
Saturday, 25 October 2008
I really wish it weren't so, because good people there are hurting badly, but all of a sudden, thanks to the global credit crunch, Iceland has become a cheap destination. Icelandair will fly you to Reykjavik from Boston or New York and put you up in the Hilton for three nights. Total cost: $559+ $90 [...]