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: xttrans frequency sampling


From   Austin Nichols <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: xttrans frequency sampling
Date   Tue, 31 May 2011 08:27:18 -0400

Argyn Kuketayev <akuketayev@mail.primaticsfinancial.com> :

Note that my answer from April still applies,
and works for any lag length you would like to use
(i.e. substitute L3.msp or L12.msp as desired):
http://www.stata.com/statalist/archive/2011-04/msg01110.html

On Mon, May 30, 2011 at 8:36 PM, Argyn Kuketayev
<akuketayev@mail.primaticsfinancial.com> wrote:
> Hello
>
> I have the dataset:
>
> ===
> item, month, state
> 1,1,0
> 1,2,0
> 1,3,1
> 2,1,0
> 2,1,1
> ...
> ===
>
> I declare the
> xtset item month
>
> then run
> xttrans state
>
> This runs fine for the delta=1. How can I make it ruin for delta=12 or 3?
>
> I can do this:
> keep if mod(month,12)==0
>
> However this would run the xttrans on 1/12 of my sample. I'd like to
> see the transitions between months 1 and 13, 2 and 14 all together
> etc.
>
> cheers
> --
> Argyn Kuketayev
*
*   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