Hi, I would like to find the difference between 'survey.start.time' and 'submission_time' for each household, titled 'response_time_diff'.
The time variable here is irrelevant, but explains why the same households did two surveys (time==0 is before, time==1 is after).
The data is formatted as follows:
Thank you so much for your time and deeply appreciate your help!
The time variable here is irrelevant, but explains why the same households did two surveys (time==0 is before, time==1 is after).
The data is formatted as follows:
| time | household_id | survey.start.time | _submission_time |
| 0 | A2 | 2019-06-13T09:15:43.523Z | 2019-06-13T13:27:23 |
| 1 | A2 | 2019-09-23T14:39:39.909Z | 2019-09-25T09:07:03 |
| 0 | ABBH1 | 2019-06-18T14:22:00.420Z | 2019-06-18T17:37:44 |
| 1 | ABBH1 | 2019-09-28T11:58:12.520Z | 2019-09-28T12:42:07 |
| 0 | ABBH2 | 2019-06-18T15:15:48.094Z | 2019-06-18T17:38:31 |
| 1 | ABBH2 | 2019-09-28T12:13:08.582Z | 2019-09-28T12:42:08 |
| 0 | ABBH3 | 2019-08-22T17:02:49.862Z | 2019-08-24T07:34:15 |
| 1 | ABBH3 | 2020-01-12T17:57:11.500Z | 2020-01-14T04:33:16 |
| 0 | ABBH4 | 2019-09-12T07:49:40.027Z | 2019-09-15T23:01:39 |
| 1 | ABBH4 | 2019-11-19T12:12:56.163Z | 2019-11-26T12:13:59 |
| 0 | ABBH6 | 2019-10-12T16:43:25.417Z | 2019-10-13T19:29:29 |
| 1 | ABBH6 | 2020-01-12T15:00:04.646Z | 2020-01-14T04:40:07 |
| 0 | ABH10 | 2019-07-26T14:01:22.867Z | 2019-07-26T16:39:14 |
| 1 | ABH10 | 2019-10-08T12:48:41.567Z | 2019-10-09T16:04:17 |
Thank you so much for your time and deeply appreciate your help!

Comment