I'm not super experienced graphing with Stata so this is a somewhat basic question. I am making a simple bar graph that is something like graph bar (sum) dollars, over(product_type) over(cat_var). If my cat_var was, say, is_teenager with values of 0/1, would it be possible to use the over command to divide the graph so that it showed all values of 0/1 (corresponding to all observations) and just the values of 1(corresponding to teenagers) rather than the default split of 0 (not teenagers) and 1(teenagers)? Basically I want to section the graph by a subset grouping rather than a disjoint grouping and am wondering if you can do this with the over command or if there is a better approach. Thanks!
Related Posts with bar graph using over to look at subset and total of a categorical variable
Correlation between dummy variablesI am working on STATA 14 and have a panel data- long view with cross sectional data of Indian non-fi…
generate difference within groupHi, I had a firm-level survey in different countries. I want to calculate the change in "score" (di…
Odd scalar behaviourDear statalisters, I am running the following code to cut up a very large file (>15g) into small…
Running regression while controlling for industry and yearsI'm investigating the influence of patenting (pat_yr -> patents per year) on the returnoninvestem…
Creating 2 dummy variables in StataHi everyone I am back with another question to help me out I have a table output containing lots o…
Subscribe to:
Post Comments (Atom)
0 Response to bar graph using over to look at subset and total of a categorical variable
Post a Comment