Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Using a scalar/macro for loop limit in building Sureg equations


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Using a scalar/macro for loop limit in building Sureg equations
Date   Mon, 3 Nov 2008 23:09:07 +0000 (GMT)

--- Thomas Jacobs <thomasjacobs@gmail.com> wrote:
> Thanks, both versions worked as you suggested.  Is there any reason
> why a scalar is a bad choice here?  I ask because of the wording you
> used about "insisting" upon it vs. "easier" to use a macro, etc.

Scalars aren't bad, it is just that locals are easier to use, which
means a smaller probability of a bug creeping in your analysis.  The
advantage of scalars is greater precision, but I believe that
difference is between 14 versus 16 digits, so in most applications that
would not matter.

-- Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room N515

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      
*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index