On Tue, Jan 15, 2013 at 3:25 PM, annoporci wrote:
> yes, I see, absolutely, I did try this also:
>
> scalar newscalar = open[3jan2012]
>
> but it didn't work, even after a tsset date, and there must be a logical
> explanation
> for that too, naturally, but I guess I ran out of ideas and stopped
> thinking.
If you type in Stata -varname[<something>]- than <something> is an
observation number. So 1 for the first observation, 2 for the second,
etc. So <something> can never be string.
-- Maarten
---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany
http://www.maartenbuis.nl
---------------------------------
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/