Hello Statalis,
I have done a conjoint experiment survey, where respondents were asked to choose between two random profiles.
I would like to display some of these decisions in a stacked bar chart, but I just did not find a way to do it the way I imagine it, but maybe it is impossible anyways, which is why I am now asking here.
So I have three "battle" variables, BYvO (Choice between young and old profile; value: 1=young 2=old), BYvM (Choice between Young and midage profile, value: 1=young and 2=midage) and BMvO (Choice between midage and old profile, value 1=midage 2=old).
For each variable isolated I can create charts like the following (percentage means n% chose old profile in decision between young and old profile)
The following catplot was installed with relatively easy code: "catplot BYvO, percent asyvars stack" Array
I've done that with the other variables as well and then tried to combine them using
"catplot BYvO, percent asyvars stack saving(bar1)
catplot BYvM, percent asyvars stack saving(bar2)
catplot BMvO, percent asyvars stack saving(bar3)
graph combine bar1.gph bar2.gph bar3.gph, ycommon commonscheme"
Array
but that creates just these three different charts, so I want to know if I can put them into one graph with the same axis and different labels for each bar.
What I had in mind (sorry for bad drawing): Array
Thank you very much for your help!
Tristan
PS: Sorry I tried to make the images smaller, but it won't save it that way
Related Posts with Creating a stacked bar chart for 3 different variables
Use Margins for Interaction terms when model does not support factor notationHi Statalist My question is about how we can get Margins commands to work correctly when the estima…
aggregating values from several variables with IF AND conditionsHello Statalisters, I have a dataset containing geographic segment sales that I have standardized i…
reghdfe and constant term reportingHi there, I use the code below, but no constant term shown in the results. Can someone help me with…
Local loop line graphHello, I am trying to make a line graph with 25 lines, one for each department, but I keep getting 2…
My R value is a period?Hello, I am deeply sorry if this has been answered somewhere and I just not have found the right ke…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a stacked bar chart for 3 different variables
Post a Comment