Dear Statalists,
I have seen the following line in someone else's code and I am not sure I understand what is done here. I suspect that it aims to create the year from the monthly date_m. Can you tell me whether this is the proper way to achieve this transformation?
gen year = 1960 + floor(date_m/12)
I would very much appreciate your feedback on this!
Best,
Baltazar
I have seen the following line in someone else's code and I am not sure I understand what is done here. I suspect that it aims to create the year from the monthly date_m. Can you tell me whether this is the proper way to achieve this transformation?
gen year = 1960 + floor(date_m/12)
I would very much appreciate your feedback on this!
Best,
Baltazar
Comment