I think you are asking about a classical ANOVA model that asks whether the mean Volume differs according to the brand. All you need to do is use the CLASS statement to specify the brand variable, then include that variable in your model. FOr example, if you are using PROC GLM, the code looks like this:
proc glm data=Have plots=all;
class Brand;
model Volume = Units Price Brand;
quit;
I think you are asking about a classical ANOVA model that asks whether the mean Volume differs according to the brand. All you need to do is use the CLASS statement to specify the brand variable, then include that variable in your model. FOr example, if you are using PROC GLM, the code looks like this:
proc glm data=Have plots=all;
class Brand;
model Volume = Units Price Brand;
quit;
Correct. You can look at the F-tests and p-values for the Type 3 sums of squares to assess whether an effect is statistically significant.
In an ideal world, R-squared should be close to 1. But different data has different amounts of noise, and so a r-squared of 0.3 may be the proper value for this data. The real question in my mind would be to look at the root mean square error reported by SAS and decide if this is an acceptable level of variation (or not). If, for example, you have some idea of measurement variability or sample-to-sample variability, and the root mean square error is somewhat close, then I'd say that's fine. Or, if the confidence intervals around your predictions or around you parameter estimates are usable, then that's fine as well. All of this is context and problem dependent, there are no rules of thumb, every data set is different, every application is different, every use is different.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.