Bookmark and Share

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]

st: Analysing longitudinal data


From   K Jensen <[email protected]>
To   statalist <[email protected]>
Subject   st: Analysing longitudinal data
Date   Tue, 26 Feb 2013 15:18:24 +0000

I have a dataset that looks like the sample I have pasted in at the
end of this message, with repeated measures over time on the same
individuals.

I would like to answer questions like:
When a value was over 1, how many were measured again within the next
week? How many of those were also over 1?
What was the average interval between a value being over 1 and the
next value for that individual?

How would I go about programming this in Stata?

Thankyou

Karin

ID	Value	Date
1	0.6	02/03/2010
1	0.6	24/05/2010
1	0.6	16/08/2010
1	0.6	10/11/2010
1	0.9	09/02/2011
1	0.7	01/05/2011
1	1.5	28/04/2011
1	1.3	30/04/2011
1	0.6	03/05/2011
1	0.6	09/05/2011
2	0.6	14/04/2009
2	0.7	23/07/2009
2	0.6	16/11/2009
2	0.6	29/12/2009
2	0.6	30/03/2010
2	0.9	01/07/2010
2	1.2	27/09/2010
2	0.7	12/10/2010
2	0.7	26/10/2010
2	0.8	25/03/2011
3	0.3	21/01/2009
3	0.3	05/11/2009
3	0.1	01/03/2010
3	0.2	24/05/2010
3	0.2	18/08/2010
4	0.9	16/02/2010
4	1.0	01/03/2010
4	0.9	12/03/2010
4	1.1	25/03/2010
4	0.5	01/06/2010
4	0.4	31/08/2010
4	0.6	30/11/2010
4	0.6	19/04/2011
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index