Stata Graphics 6: Bar chart (English version)
3.8 هزار بار بازدید -
5 سال پیش
-
The Stata command "graph bar"
The Stata command "graph bar" can be used to draw a bar chart for categorical variables. The height of each bar represents the frequency of observations that belongs to each category of the variable.
Please download the dataset from
https://drive.google.com/file/d/1bLck...
All the commands are as follows. If the video helps, please subscribe to my channel. Thanks.
***************
** Bar chart **
***************
tab wiferace
graph bar, over(wiferace)
graph bar, over(wiferace) blabel(bar)
graph bar, over(wiferace) blabel(bar) bar(1, fcolor(green) lcolor(black) lwidth(thin))
graph bar, over(wiferace) blabel(bar, format(%9.2f) color(black)) bar(1, fcolor(orange) lcolor(black) lwidth(thin))
Please download the dataset from
https://drive.google.com/file/d/1bLck...
All the commands are as follows. If the video helps, please subscribe to my channel. Thanks.
***************
** Bar chart **
***************
tab wiferace
graph bar, over(wiferace)
graph bar, over(wiferace) blabel(bar)
graph bar, over(wiferace) blabel(bar) bar(1, fcolor(green) lcolor(black) lwidth(thin))
graph bar, over(wiferace) blabel(bar, format(%9.2f) color(black)) bar(1, fcolor(orange) lcolor(black) lwidth(thin))
5 سال پیش
در تاریخ 1398/05/03 منتشر شده
است.
3,830
بـار بازدید شده