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
Export dataset to LaTeXDear Stata Users, I have a dataset below. I want to export the data to the latex as the following t…
Replication code for Stata 14 and Stata16 producing different resultsI ran into a problem where a data replicator could not replicate an item response variable using the…
matching counties based on first two digits for finding similar stateHello, I have a data which shows distance between all counties from another county. This includes a…
How to combine 2 rows of data into 1 row_Dear stata user, I'm trying to combine 2 or more rows of information into 1 row, because they are a…
Creating Dummy VariableDear Statalist Experts I need to create a dummy variable from the following variable "A" with top a…
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