Hello,
This may be really simple and I am just missing something from other examples I have seen, but I have a quarter string variable:
But when I try generating the newqtr variable I just get missing values, I have seen a similar example where the quarter was formatted like "2016 Q1" and they could use the quarterly() function with the mask being "YQ". Do I need to have my quarter variable reformatted for this to work? The data I get just gives it to me in this format so I was hoping I could just go straight into the conversion.
Thank you in advance,
Colton Tousey
P.S. I am still using Stata14
This may be really simple and I am just missing something from other examples I have seen, but I have a quarter string variable:
Code:
clear input str7 qtr "Q1 2016" "Q2 2016" "Q3 2016" "Q4 2016" end gen newqtr = quarterly(qtr, "QY")
Thank you in advance,
Colton Tousey
P.S. I am still using Stata14
Comment