I have data on the date entreprises have been created and the date at which the same entreprises have formally registered.
I want to create two variables: a duration variable and an event ( registered or not- binary 1/0) variable.
I generated the duration variable as follows:
duration=date2 - date1
How can I generate the event variable?
Is the duration variable correctly generated?
ID | Date of creation=date1 | Date of registration=date2 |
1 | 2003 | 2003 |
2 | 1990 | 1994 |
3 | 1978 | 1978 |
4 | 1954 | 1955 |
5 | 2001 | 2001 |
6 | 1990 | 1995 |
7 | 2005 | 2010 |
Jean
Comment