Hello,
I'm new in the forum.
I have a problem with the command graph bar. I have two dummy variables (suppose var1; var2 with values 0 and 1). I want to put inside the same graph the absolute frequencies of zeros and ones for these two variables, grouping by these two categories and labeling the categories with "No" and "Yes".
The output should be composed by 4 bars, 2 for No and 2 for yes, respectively for var1 and for var2.
Could you please help me with the sintax?
Thanks a lot
Related Posts with Graph bar: two variables with the same categories in the same graph
Identifying first and second re-admissions in a health datasetI am working with Stata/MP 15.1 and have appended two datasets. Database 1 includes a list of patie…
One line code for performing arithmetic operation (here multiplication) while merging two datasetsSuppose, I have two datasets given below, now how can I merge the datasets so that resulting values …
catplot - how to show n to the left of the bars, percentages within bars, and mean values outside the bars (to the right)Dear all, I am using the community-contributed command catplot from SSC in Stata 16.1 in order to p…
recovering the estimate of an interaction term using margins when the base level of all zeros is not includedHi Fellow Statalisters, In a recent posting (https://www.statalist.org/forums/forum/general-stata-d…
doiplot - postestimation module after metan for plots that address asymmetry or heterogeneityDear All There is now a post-estimation command after metan to visualize studies in meta-analysis t…
Subscribe to:
Post Comments (Atom)
0 Response to Graph bar: two variables with the same categories in the same graph
Post a Comment