I have three categorical variables (capacity, times, prices). The capacity has three levels ( 4 cups, 8 cups, and 10 cups). After run regression with these three categorical variables (capacity, times, prices), I have predicted values of preference (prefhat).
How can I have a scatter plot of prefhat against capacity (with three level) along with a connected line of average prefhat in each level of capacity? (The scatter plot and the line is in the same graph)
Thank You
Related Posts with Scatter plot with a categorical variable
loops to import excel file and mergeHi everyone, I have a folder that contains 26 individual .xlsx files, each named with the name of a…
Binsreg questionHello, I am trying to understand how binscatter plots work and I have a somewhat general question i…
What we should do when the result is only significant to one country but the whole sample?In a staggered Difference-in-Differences setting, my static setting is: Array On the result table …
Run do files inside a do fileHello, I have different do files in a folder (let's call dofile1.do, dofile2.do and dofile3.do). I …
cannot compute an improvement -- discontinuous region encounteredHi, I'm doing ordered logistic regression with panel data set, and ran across with the error message…
Subscribe to:
Post Comments (Atom)
0 Response to Scatter plot with a categorical variable
Post a Comment