The Stata graph commands "graph pie" and "graph bar" can be used to draw pie charts or bar charts for two categorical variables. Please download the data set from:
https://drive.google.com/file/d/16XJB...
All the commands in the video:
*******************************
** Two Categorical Variables **
*******************************
** Pie Charts **
graph pie, over(wifeworkstatus) by(region)
#delimit ;
graph pie, over(wifeworkstatus)
by(region, title("Employment Status by Region") note(" "))
pie(1, color(blue))
pie(2, color(orange))
plabel(_all percent, format(%9.1f))
;
#delimit cr
** Bar Charts **
graph bar, over(wifeworkstatus) over(region) asyvars blabel(bar, format(%9.1f))
#delimit ;
graph bar, over(wifeworkstatus)
over(region)
asyvars
blabel(bar, format(%9.1f))
percentages
bar(1, color(blue))
bar(2, color(orange))
ytitle("Percent of People")
title("Employment Status by Region")
;
#delimit cr
【Free Courses on My YouTube Channel】
Economics in Real Life:
• Economics in Real Life
Solutions to Introductory Econometrics A Modern Approach 7th Edition:
• Solutions to Introductory Econometrics A M...
Solutions to Microeconomics Theory and Applications with Calculus:
• Solutions to Microeconomics Theory and App...
Stata Tutorials:
• Stata Tutorials
Five Minute Econometrics (Econometrics Tutorials):
• Five Minute Econometrics (Econometrics Tut...
Introductory Microeconomics:
• Introductory Microeconomics (2022)
Introductory Stata:
• Introductory Stata (2022)
Drum Covers:
• Drum Covers|流行歌曲電子鼓
【粵語Cantonese】現實生活中的經濟學:
• 【Cantonese粵語】現實生活中的經濟學
【國語Mandarin】現實生活中的經濟學:
• 【Mandarin國語】現實生活中的經濟學
【粵語Cantonese】微觀經濟學基礎:
• 粵語Cantonese微觀經濟學基礎2022
【粵語Cantonese】五分鐘計量經濟學:
• 【Cantonese粵語】五分鐘計量經濟學(計量經濟學輔導)
【國語Mandarin】五分鐘計量經濟學:
• 【Mandarin國語】五分鐘計量經濟學(計量經濟學輔導)
On the Road:
• 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
/ @bobwenecon
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
https://alison.com/course/introductor...
Introductory Stata: Graphics and Data Visualization
https://alison.com/course/introductor...