Dear All,
I transformed the string dates by doing the following:
gen date1=date(dateString1,"MDY")
format date1 %td
However, when I now try to declare my dataset as a panel data (xtset company_name date1), there appears an error message (r451): time variable must contain only integer values. Is there a way to solve this? One way I thought of was reversing the last step (format date1 %td) as then I would be left with only integer values I believe.
Many thanks in advance for the help and a great weekend ahead!
I transformed the string dates by doing the following:
gen date1=date(dateString1,"MDY")
format date1 %td
However, when I now try to declare my dataset as a panel data (xtset company_name date1), there appears an error message (r451): time variable must contain only integer values. Is there a way to solve this? One way I thought of was reversing the last step (format date1 %td) as then I would be left with only integer values I believe.
Many thanks in advance for the help and a great weekend ahead!
Comment