num_dx is a straight numeric conversion of the string in dx. . destring dx, generate(num_dx) Now, create a version of dx that includes the dot, and then destring that variable. . clonevar dx_dot = dx . icd9 clean dx_dot, dots . destring dx_dot, generate(num_dot) +---+...
strdate replaces a list of string date variables with a list of Stata numeric date variables having the same names, the same positions in the data set order, and the same variable labels (if present). The conversion is carried out using the Stata date() function. strdate is used when ...
fillmissing program provides the convenience of filling missing values in numeric or string variables with the variable's previous value, forward value, first or last value, or with some calculated values such as mean, median, minimum, maximum, etc. in numeric variables. The program can work wit...