Using the Encode Command In Stata to Convert String Variable

Often times, we have to work with categorical variables when doing statistical analysis. Categorical variables are those variables that have two or more categories or groups. For example, a variable representing sectors in a stock market could have categories like tech, automobiles, pharmaceuticals, cement, banks etc. These categories of string type may also be needed …

Using the Encode Command In Stata to Convert String Variable Read More »