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
How to Fit Non-Linear Regressions with Scatter PlotDear Statalists, I really need help now. Thanks in advance. In the below code chunk, I would like …
How to select a subset of data from a full databaseDear all, If I have a database on STATA with multiple rows for each patient (due to multiple outpat…
Missing handling for pooled cross-sectional data (?)Hi all, I am using pooled cross-sectional data for a period of 14 years (it is not a panel!). I wil…
stcompetDear Stata Forum, My research question: Among people who have had a kidney transplant, what are sur…
Anova problemDear Statalisters, I haven't done anova in Stata since the advent of great 'xt/mixed'. But for part…
Subscribe to:
Post Comments (Atom)
0 Response to Scatter plot with a categorical variable
Post a Comment