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: Data manipulation - time between value changes of a categorical variable


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Data manipulation - time between value changes of a categorical variable
Date   Sun, 25 Sep 2011 23:38:43 +0100

I'm pretty sure too and agree with Robson. This sounds like a problem
for -tsspell- (SSC).

Nick

On Sun, Sep 25, 2011 at 10:31 PM, Robson Glasscock <glasscockrc@vcu.edu> wrote:
> Try this:
>
> http://stata.com/statalist/archive/2002-08/msg00279.html
>
> I'm also pretty sure I have seen some posts and/or FAQ info from Nick
> Cox dealing with this same issue.
>
> best,
> Robson Glasscock
>
> On Sun, Sep 25, 2011 at 4:12 PM, Iulian Ihnatov <iulian.ihnatov@uaic.ro> wrote:
>> Dear Statalister,
>> In have a panel dataset of 200 countries/10 years, and the "regime" variable
>> (categorical - 8 values).
>> The questions are:
>> 1. by country: calculate the lenght (years) of each regime before the
>> switch;
>> 2. tabulate (and, if possible, plot - 3D?) the frequency for each lenght and
>> regime.
>>
>> The second task is reacheable with the tabulate, table or, better, tabout
>> commands (not sure about the graph).
>> Would you be so kind to give me some idea of how to solve the first task?
>>
>>
>> Regards,
>> Iulian Ihnatov
>> -Stata 10-
*
*   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