Hello,
I have a ym variable in the format %tm. I want a quarterly var and have tried gen q=qofd(ym) but it only makes two quarters, that are wrong (1960q1 and q2, not anywhere near my date ranges). I tried sorting first, checked for missing values. Not sure what I have wrong here. I tried gen q=quarter(ym) and same issue.
I have a ym variable in the format %tm. I want a quarterly var and have tried gen q=qofd(ym) but it only makes two quarters, that are wrong (1960q1 and q2, not anywhere near my date ranges). I tried sorting first, checked for missing values. Not sure what I have wrong here. I tried gen q=quarter(ym) and same issue.
Code:
Variable Storage Display Value name type format label Variable label -------------------------------------------------------------------------------- ym float %tm
Comment