Quantcast
Channel: The Stata Blog - Latest Comments
Viewing all articles
Browse latest Browse all 1129

Re: How to successfully ask a question on Statalist

$
0
0

Hi there,
I need to find the number of days between dates, calculating from the first date
ID Date
1 11nov2006
1 26may2007
1 26may2007
1 30may2007

gen newvar= date-date[n-1] does NOT work since it will go back to 0 for 26may2007.

Does anyone know how to do this? Thanks


Viewing all articles
Browse latest Browse all 1129

Trending Articles