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
Difference-in-difference with categorical outcome variableHi everyone, I want to use the Diff command in Stata to run a propensity score matching diff-in-dif…
2020 Swiss Stata Conference takes place virtuallyDue to the development of the situation, the Swiss Stata Conference on November 19 will take place v…
Generate random numbers with specific mean and standard deviation within a rangeHello, I am using STATA 14 and would like to generate some random numbers that have a specific mean …
All characters of a variable are not displayed when I import the excel data. only 1st 27 characters are shown. Please HELP!For example "AgeofPersonAnsweringtheQuest" , only AgeofPersonAnsweringtheQues is displayed when I im…
Creating ratio variable from two independent variables for panel dataHi all. I am using educational attainment data and I have data on female tertiary enrolment(%), male…
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