Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Abhimanyu Arora <abhimanyu.arora1987@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: RE: no display |
Date | Wed, 14 Mar 2012 17:06:42 +0100 |
Hi Nick Thanks very much indeed :-) Cheers Abhimanyu On Wed, Mar 14, 2012 at 4:57 PM, Nick Cox <n.j.cox@durham.ac.uk> wrote: > Yes indeed. Scalars and variables share the same namespace. When you ask for > > . di AINT > > Stata interprets that as a reference to youre variable -AINT_num- and -display-s it to the best of its ability; in practice it will show -AINT_num[1]-. > > You can solve this by one or more of > > 1. Disallowing variable name abbreviations. -set varabbrev off- if I recall correctly. > > 2. Using scalar names that are quite distinct from variable names. > > 3. Using -scalar(AINT)- to flag that you want the scalar. > > This is all documented, but for a helpful reprise start with > > SJ-6-2 dm0021 . Stata tip 31: Scalar or variable? Problem of ambiguous names > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G. I. Kolev > Q2/06 SJ 6(2):279--280 (no commands) > tips for avoiding abbreviation conflicts with variables > when naming scalars > > which is accessible, online. > > . search author, kolev > > gives a clickable link. > > > > Nick > n.j.cox@durham.ac.uk > > > -----Original Message----- > From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Abhimanyu Arora > Sent: 14 March 2012 15:36 > To: statalist@hsphsun2.harvard.edu > Subject: st: no display > > Dear statalist > > The following link could show the strange problem I am facing > I follow same procedure twice but in one case stata displays the > scalar (ATNT) while for the other case does not. > http://screencast.com/t/oq6sdsL0 > > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/statalist/faq > * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/