Browsing Category »Coding«

Destring Command (STATA)

March 24, 2014One Comment

Sometimes, you will find strings variable from STATA dataset. Unfortunately, you cannot do summarize, regression, ANOVA, graph, etc. However, sometimes, the dataset is saved as strings. This is a character variable, then you should to change this variable to numeric value, in order to be calculated by the program. Simple question, how to change strings variable [...]