Dear all,
I have a numerical variable regarding duration whose integer values are both followed by digits (the value is 0.5) and without, as shown in the example. They identify durations in months:
I need to select only those variables that end with .5. I cannot with substr due to the format. Could you please help me?
Thank you and best,
Lydia
I have a numerical variable regarding duration whose integer values are both followed by digits (the value is 0.5) and without, as shown in the example. They identify durations in months:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(stop1_panel stop2_panel) 634 . 634 . 634 . 634 . 634 . 634 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 629.5 . 629.5 . 629.5 . 629.5 . 629.5 . 629.5 . 605.5 . 605.5 . 605.5 . end
Thank you and best,
Lydia
Comment