Hi!
I run STATA 17 on a Mac. I have a dataset with 826 observations and around 1,089 variables.
One of the variables is the time they submitted a form at the clinic "f_submittime", and the data looks like this: "09mar2020 13:01:54". The type is "float" if that helps.
I want to find a way to just divide all observations into two groups depending on if it was before or after 12.00, no matter what the date was.
How can I convert this variable into something that I can use to create a new binary variable that is "time after 12" y/n.
I have searched, but have not been able to find the answer.
I would appreciate very much if someone could help me!
I run STATA 17 on a Mac. I have a dataset with 826 observations and around 1,089 variables.
One of the variables is the time they submitted a form at the clinic "f_submittime", and the data looks like this: "09mar2020 13:01:54". The type is "float" if that helps.
I want to find a way to just divide all observations into two groups depending on if it was before or after 12.00, no matter what the date was.
How can I convert this variable into something that I can use to create a new binary variable that is "time after 12" y/n.
I have searched, but have not been able to find the answer.
I would appreciate very much if someone could help me!
Comment