Please I need to calculate the difference between a date n and the first date of a long set.
I do not know how to specify the date 1
example:
id . date_edss edss
Cemcat-10 04/01/2000 1.5
Cemcat-10 27/12/2000 1
Cemcat-10 22/12/2001 0
Cemcat-10 17/12/2002 1
Cemcat-10 12/12/2003 1
Cemcat-10 06/12/2004 0
Cemcat-10 01/12/2005 1
Cemcat-10 26/11/2006 1
Cemcat-10 21/11/2007 1
Cemcat-10 15/11/2008 1
Cemcat-10 05/11/2010 0
Cemcat-10 20/10/2013 0
excuse me, I'm new to the list.
thansk
Related Posts with calculate the difference between a date n and the first date of a long set
Variable selection in survival analysesHi All, I have clinical trial data, and my goal is to build a predictive model. In logistic analyse…
Generating advanced variable in Stata (panel data)Hi all, I am working with a panel data set (Orbis by Bureau van Dijk) containing information on mill…
Replace with value from another observation?Hi Statalist! I am so please to be on board this great list that I have often used with great pleas…
Difference-in- model and data structureDear all, I have a question about the difference-in-difference (DID) model and its data structure. M…
Generating age variable in pannel datasetHello Everyone! I was wondering if you could assist me in generating an age variable in a panel dat…
Subscribe to:
Post Comments (Atom)
0 Response to calculate the difference between a date n and the first date of a long set
Post a Comment