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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Laspeyres index


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Laspeyres index
Date   Mon, 5 Mar 2012 09:23:51 +0000

Partho is pointing to techniques for relating all, or almost all,
values to values in a particular observation.

Since the FAQ quoted was written, a more systematic survey has appeared in

Cox, N.J. 2011. Speaking Stata: Compared with ...
The Stata Journal 11(2): 305-314

Abstract.  Many problems in data management center on relating values
to values in other observations, either within a dataset as a whole or
within groups such as panels. This column reviews some basic Stata
techniques helpful for such tasks, including the use of subscripts,
summarize, by:, sum(), cond(), and egen. Several techniques exploit
the fact that logical expressions yield 1 when true and 0 when false.
Dividing by zero to yield missings is revealed as a surprisingly
valuable device.

On Mon, Mar 5, 2012 at 8:26 AM, Partho Sarkar <partho.ss+lists@gmail.com> wrote:
> Hello  Tomáš,
>
> I am glad the links helped.  The statalist archives are indeed
> invaluable!  If you haven't seen it yet, you might find this FAQ
> useful too
>
> http://www.stata.com/support/faqs/data/firstoccur.html
>
> [In all these problems, the key is the total(X==x1) device, which can
> be utilized to generate various variables related to one particular
> date or value of a given variable ]
>
> Thanks for the tips about plotting- will explore these.  I work with
> panel data (declared as such), so things are easier to handle with
> usual graph commands.  By the way, if you want to be able to automate
> generating reports including graphs, you will find the -rtfutil-
> package (http://econpapers.repec.org/software/bocbocode/s457080.htm
> also -findit rtfutil-) very useful (though you will have to spend some
> time deciphering the rtf related code for customising your report!)
>
> Regards
> Partho
>
>
> On Mon, Mar 5, 2012 at 12:48 AM, Tomáš Houška <xbender@gmail.com> wrote:
>> Hi,
>>
>> thank you very much for your help - I found all I needed in the
>> advised threads.
>> I will also add a hint to graphing the price indices after their calculation:
>>
>> a great help is this:
>> http://www.stata.com/statalist/archive/2003-10/msg00403.html
>> and also -linkplot- from Mr. Coxx (-findit linkplot-) : see also
>> http://www.stata.com/statalist/archive/2003-10/msg00403.html
>>
>> Regards
>> T.
>> *
>> *   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/

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