Dear All,
I got stuck with my work. I have year-quarterly variable t e.g. 2020q1. I wanted to extract only quarter from it. I used the command:
Stata shows me that everything is 21 quarter...
I don't understand the logic behind this. I wanted to extract year and used the code:
and got the result.
I got stuck with my work. I have year-quarterly variable t e.g. 2020q1. I wanted to extract only quarter from it. I used the command:
Code:
gen quarter=qofd(yofd(t))
I don't understand the logic behind this. I wanted to extract year and used the code:
Code:
gen year=yofd(dofq(t))
Comment