Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

RE: st: How to set a year index?


From   Nick Cox <n.j.cox@durham.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: How to set a year index?
Date   Fri, 20 May 2011 18:01:35 +0100

You are correct. I misquoted your code; a posting that crossed with this one pointed out that mistake and apologised for it. Sorry again, 

Nick 
n.j.cox@durham.ac.uk 

Oliver Jones

Am 20.05.2011 17:24, schrieb Nick Cox:
> We're talking style, and long ago wise people warned de gustibus non est disputandum.
>
> But, sincerely...
>
> How does the extra code make it easier to understand? The presumption is that a reader needs the clue
>
> local mean = r(mean)
>
> to realise that r(mean) contains the mean. Really???

There is a huge difference between your example here and my code!
The "mean" in the case at hand is just the single value of price in the year 2005
which serves as the base value and thus using the scalar base_value makes this very clear!

>
> Nick
> n.j.cox@durham.ac.uk
>
*
*   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/


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