Dear Sir,
I am a new user of STATA 15. I have imported an excel datasheet in STATA and I was trying add some variables. The data set looks like:
I was trying to add the two variables into one single column titled total rice production. But when i tried to generate a new variable ( gen total= Xriceproduction + Y riceproduction) it did not give me the expected result. It added the digits of column Y to the end of the digits in column X. So it appeared like 345645 for 1st row and 2456777 for second row. But I wanted to sum them up. How can I do that.
TIA
I am a new user of STATA 15. I have imported an excel datasheet in STATA and I was trying add some variables. The data set looks like:
X rice production (metric ton) 
Y rice production (metric ton) 

3456  45  
2456  777 
TIA
Comment