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]

st: xttrans frequency sampling


From   Argyn Kuketayev <akuketayev@mail.primaticsfinancial.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: xttrans frequency sampling
Date   Mon, 30 May 2011 20:36:02 -0400

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