Hi Stata Forum please help, I apologize if it may have been asked before in other posts
I want to ask how to generate new variable using foreach, here the example of data :
I want to generate data where variable points are divided by 1000000 & the new variable output looks like this:
Please kindly your Advice,
Thank you.
I want to ask how to generate new variable using foreach, here the example of data :
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double points str5 duck double rank 12471600 "duck1" 1 5393360 "duck2" 2 1574407 "duck3" 3 696100 "duck4" 4 629800 "duck5" 5 end
I want to generate data where variable points are divided by 1000000 & the new variable output looks like this:
Please kindly your Advice,
Thank you.
Comment