Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: still for Stata 14: graphs without preserve and restore
From
László Sándor <[email protected]>
To
[email protected]
Subject
Re: st: still for Stata 14: graphs without preserve and restore
Date
Fri, 13 Sep 2013 11:34:56 -0400
Thanks again, Maarten. I am obviously no real programmer but it still
strikes me as something odd that it is worth destroying all your
variables to more easily make the values out of a few yvars and an
xvar to plot. At least you could make tempvars and collapse those?
Anyway.
In any case, users should be aware of this extra cost of plotting,
even before there is much to do about it. (Not many commands use the
immediate -scatteri-, do they?)
On Fri, Sep 13, 2013 at 3:16 AM, Maarten Buis <[email protected]> wrote:
> I think it can be an excelent idea: it tends to make code much more
> readable and thus easier to maintain and debug. Less bugs is in
> everybodies interest. I would certainly recommend this strategy for
> people programming user written graphics commands (I do so all the
> time). For most sample sizes the slow down is trivial. The fact that
> it makes those programs harder for really big data is than a
> legitimate trade-off, however unfortunate that may be for you.
>
> -- Maarten
>
>
> On Thu, Sep 12, 2013 at 11:32 PM, László Sándor <[email protected]> wrote:
>> My impression is that many -twoway- graphs are still made by
>> destroying the data first (think of collapsing) and then restoring it.
>> At current hard drive speeds and data sizes this is rarely a good
>> idea.
>> *
>> * 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/
>
>
>
> --
> ---------------------------------
> 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/
*
* 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/