I have a variable named "ga," which means gestational age. The data is represented in weeks and days. For example, 31.6 means 31 weeks and 6 days. I want to convert the variable into weeks. I am struggling with the appropriate code. Split didn't work since the data is numeric.
Here is a sample of my data:
------------------ copy up to and including the previous line ------------------
Here is a sample of my data:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double ga 31.6 31.6 31.5 31.5 30.6 31.4 27.1 27.4 26.3 27.1 26.3 26.2 29.4 29.3 30.4 end
Comment