I have a dataset on infant and child ages, where age is stored as a string variable and by week,month or year. I need a way to convert all to age in weeks.

Here is a sample of the data:

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str9 age
"5 weeks"  
"12 weeks"
"5 months"
"3 year"   
"7 week"   
"2 year"   
"19 months"
"2 months"
"3 months"
"6 year"   
"2 months"
"10 months"
"2 year"   
"3 year"   
"4 year"   
"6 week"   
"4 year"   
"5 year"   
"4 month"  
"8 month"  
end
I appreciate help with this problem. Hope everyone is doing well. Like many, I am working from home.