encode (see [d] encode) has long been one of Stata's basic data-management commands, encode maps the distinct strings of a string variable to an integer-valued numeric variable for which the strings become value labels. Unless you specify a preexisting set of value labels through its label...
I'm using Stata 11.2. Here is my code: foreach var of varlist IntegrT_Stage_Algo Nodes_Positive IntegrTNM_Stage_Algo_No_assumpti InvStatus { encode `var', gen(v2`var') } this is my error message: option gen() incorrectly specified r(198); I guess what I would also like once I...
*http://www.stata.com/help.cgi?search*http://www.stata.com/support/statalist/faq*http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: *http://www.stata.com/help.cgi?search*http://www.stata.com/support/statalist/faq*http://www.ats.ucla.edu/stat/stata/ * * For ...