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

Опубликовано: 23 Октябрь 2024
на канале: The Data Hall
2,198
21

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 variable.

Download exercise file:
https://payhip.com/b/tvdj2


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

Download Do/Data file from the following link:
https://thedatahall.com/using-the-enc...

Best 10 Introductory Econometrics Books
https://thedatahall.com/best-10-intro...

Introduction to Econometrics by Jeffrey M. Wooldridge
https://amzn.to/44ttv2z

Econometric Analysis by William H. Greene
https://amzn.to/3AOCE8j

Basic Econometrics by Damodar Gujarati and Dawn Porter
https://amzn.to/3APIGpf

A Guide to Econometrics by Peter Kennedy
https://amzn.to/44taOfI

Website: thedatahall.com

Disclaimer: Some links are affiliate links that help the channel at no cost to you.