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: xttrans frequency sampling
From
Austin Nichols <[email protected]>
To
[email protected]
Subject
Re: st: xttrans frequency sampling
Date
Tue, 31 May 2011 08:27:18 -0400
Argyn Kuketayev <[email protected]> :
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
<[email protected]> 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/