How to convert string varaible into numeric using encode command in Stata

12K views Mar 19, 2023
publisher-openvideo

thedatahall.com

Verified Open.Video Creator Badge

This video is used to encode variable in stata. The encode command converts string variable into numerical and value label them. it is used for xtset command also as xtset command do not accept string varaible. 00:00 Intro to encode 2:20 Convert categorical variable into numeric 5:33 Assign custom label in encode 10:21 Reduce size of data 13:08 Decode Website: thedatahall.com

#Demographics
#Social Sciences
#Statistics