Dear Statalisters -
I am cleaning a lot of date/time data, formatted as %tc and need to make some edits to the values. I have found that I can easily edit a %td formatted variable by writing code along the lines of replace dt_flow = d(19 Aug 2006) if ptid==XXXXX but I have searched widely online and have not been able to find a way to modify a %tc variable as easily though I expect that this utility exists. Can anyone help with this code?
Thanks so much,
Alison
I am cleaning a lot of date/time data, formatted as %tc and need to make some edits to the values. I have found that I can easily edit a %td formatted variable by writing code along the lines of replace dt_flow = d(19 Aug 2006) if ptid==XXXXX but I have searched widely online and have not been able to find a way to modify a %tc variable as easily though I expect that this utility exists. Can anyone help with this code?
Thanks so much,
Alison
Comment