Create Categorical Variables from Continuous Variables (recode) | Stata Tutorials Topic 27

preview_player
Показать описание
Stata Tutorials Topic 27: Create Categorical Variables from Continuous Variables (recode) | Summary Statistics and Regression Analysis Using Stata

Hi, I am Bob. Welcome to the Stata course on summary statistics and regression analysis. We are in Module 2 about the data management. In addition to creating new variables by the generate command, we use the recode command to quickly create a categorical variable or a dummy variable from an existing continuous variable.

Please download the BOB.dta dataset:

The Stata commands in this video:
*load the Stata data file for this course
use BOB.dta, clear

describe

summarize

*recode a continuous variable to a dummy variable
recode schooling (6/12=0) (13/17=1), generate(collegenew)

tabulate collegenew

*recode a continuous variable to a categorical variable
summarize age

recode age (25/34=1) (35/44=2) (45/54=3), generate(gage)

tabulate gage

*label values for the categorical variable created
recode age (25/34=1 "age group 25-34") (35/44=2 "age group 35-44") (45/54=3 "age group 45-54"), generate(gage2)

tabulate gage2

【Free Courses on My YouTube Channel】

Economics in Real Life:

Solutions to Introductory Econometrics A Modern Approach 7th Edition:

Solutions to Microeconomics Theory and Applications with Calculus:

Stata Tutorials:

Five Minute Econometrics (Econometrics Tutorials):

Introductory Microeconomics:

Introductory Stata:

Drum Covers:

【粵語Cantonese】現實生活中的經濟學:

【國語Mandarin】現實生活中的經濟學:

【粵語Cantonese】微觀經濟學基礎:

【粵語Cantonese】五分鐘計量經濟學(計量經濟學輔導):

【國語Mandarin】五分鐘計量經濟學(計量經濟學輔導):

On the Road:

【Become a Supporter/Member of the channel ($2.99) to get PDF transcripts for】
1. Solutions to Microeconomics Theory and Applications with Calculus 5th Edition,
2. Solutions to Introductory Econometrics A Modern Approach 7th Edition,
3. Introductory Stata (2022),
4. Introductory Microeconomics (2022), and
5. Introductory Stata: Summary Statistics and Data Management

In addition to the videos on my YouTube channel, you can also learn Stata from my free Alison online courses.

Introductory Stata: Summary Statistics and Data Management

Introductory Stata: Graphics and Data Visualization

#Stata #recode #DataManagement #SummaryStatistics #tutorial
Рекомендации по теме
Комментарии
Автор

do you have a lesson to explain regressional table, thanks

isurusenevirathne