Hi everyone,
I have a quick question to ask you. I have a dataset about contract starting dates, and contract ending dates about household electricity consumption in Spain. My aim is:
Could you give me some insights on how to do that?
Thank you very much in advance.
Best,
Michael
Edit: Sometimes, the date_contract_end is missing, meaning that this household's contract is not terminated.
I have a quick question to ask you. I have a dataset about contract starting dates, and contract ending dates about household electricity consumption in Spain. My aim is:
- I would like to know how much time spent, on average, households in my sample, please.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long id double(date_contract_start date_contract_end) 1001 18887 21700 1001 21701 22431 1001 22432 22645 1001 22646 22676 1001 22677 22735 1001 22736 23010 1001 23011 23069 1001 23070 .
Thank you very much in advance.
Best,
Michael
Edit: Sometimes, the date_contract_end is missing, meaning that this household's contract is not terminated.
Comment