I have some panel data with quarterly data in string format (imported from .csv file).
The name of the variable is datacqrt
and it is in the format "YYYY"Q"Q"
say 1998Q3
. So I have it from 1966Q1
to 2014Q4
for each of the around 200 categories.
I am following the Stata guide and creating a new variable like this
generate time = date(datacqtr,"YQ")
but then it creates only missing values.
How do I make Stata understand the variable datacqrt
is a time?