BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
palolix
Lapis Lazuli | Level 10

Dear SAS Communities,

 

I would like to fit a regression  model in order to predict the continuous variable "dry matter" (DM) when the fruit has an hedonic score of 5, 5.5, and 6 (categorical predictor). 

According to Shapiro Wilk p-value for normality, the residuals do not follow a normal distribution.
 

 

palolix_0-1770933847291.png

In this case, is it correct to include a quadratic term in the model like this? I did not include a class statement since the regression line is being fitted.

 

proc glm data=one;
model DM= hedonic hedonic*hedonic;
run;

 

 

I would greatly appreciate your feedback!

 

1 ACCEPTED SOLUTION
4 REPLIES 4
palolix
Lapis Lazuli | Level 10

Thank you Ksharp!

So, if the quadratic and cubic terms are significant then I should include the higher order in the model I guess

 

Parameter Estimate Standard
Error
t Value Pr > |t|
Intercept 14.85272543 2.22070211 6.69 0.0011
hedonic 6.71613239 1.82095677 3.69 0.0142
hedonic*hedonic -1.19830813 0.41222284 -2.91 0.0335
hedoni*hedoni*hedoni 0.07633635 0.02720314 2.81 0.0377
palolix_0-1771019306025.png

 

 

 
Ksharp
Super User
Yes. According to the Doc, I think it should be .

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
What is ANOVA?

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.

Discussion stats
  • 4 replies
  • 529 views
  • 2 likes
  • 2 in conversation