Hi, all,
I know that we can use STATA command gen new_variable="00000" to generate a new string variable, having 5 zeros in total.
However, I don't want to use this method to do the same work. Is there an alternative to do this in STATA like function or programming?
Thank you!
I know that we can use STATA command gen new_variable="00000" to generate a new string variable, having 5 zeros in total.
However, I don't want to use this method to do the same work. Is there an alternative to do this in STATA like function or programming?
Thank you!
Comment