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
Roc curveHi everyone, I have made a ROC curve to test the predictive power of the credit rating in estimating…
Statistical Non-Significance of results and their interpretion by using confidence intervals and standard errorsDear Stata Members I have done a Difference in Difference model and I got the following output Cod…
Smaller and low quality graphs in Stata 17Dear community, I'm using Stata 17 SE and getting smaller and low-quality graphs than in previous v…
Margins "variable not found in list of covariates" logistic regressionHi there, I'm having an issue whereby I am trying to run a margins command following my logit regre…
Help in creating so many dummiesHi I have a data set of 94 countries and number of observations for each country is different. The…
Subscribe to:
Post Comments (Atom)
0 Response to Scatter plot with a categorical variable
Post a Comment