How to draw a barplot split by variable levels, while controlling for other variables via multiple regression?
问题 How can I draw a barplot for means, while controlling for other variables through regression -- in a split-bars-by-vars fashion? My general problem I conduct a research to figure out which fruit is more likable: mango, banana, or apple. To this end, I go ahead and sample 100 people at random. I ask them to rate, on a scale of 1-5, the degree of liking each of the fruits. I also collect some demographic information about them: gender, age, education level, and whether they are colorblind or