Hello all,
There is a string variable dtlastchangeddate. The specific data look like this:

We want to use docf command on it.
Then we write code:
However, all values of r_date are 0.

Are there any problems during the process?
Any advice and guidance would be greatly appreciated! Thanks a lot.
Li
There is a string variable dtlastchangeddate. The specific data look like this:
We want to use docf command on it.
Then we write code:
Code:
encode dtlastchangeddate,gen (date) gen r_date=dofc(date)
Are there any problems during the process?
Any advice and guidance would be greatly appreciated! Thanks a lot.
Li
Comment