BookmarkSubscribeRSS Feed
Fluorite | Level 6

Hello here,

I want to obtain Energy Adjusted Dietary Inflammatory Index (DII). I used Proc surveyreg to run linear regression and obtain an output data set containing predicted values and residual Dietary inflammatory index values by modelling DII as dependent variables and Total energy intake as independent variable.  To assume actual intake, I must add a constant to these residuals. This constant is the predicted DII value at mean total Energy intake according to Walter willett's paper "Adjustment for total energy intake intake in epidemiological studies".


I don"t know how to write the sas code to obtain that constant. I need your help. Thanks.

Calcite | Level 5

Hey! how did you solved this problem? I am in a kind of the same thing! in my case I also have a score and need to adjust for energy using the residuals method, I dont know if in the regression I should include each nutrient (cho, pro, fat) as independent variables. How did you did it? and also which constant did you used at the end?




Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.


Register 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
  • 1 reply
  • 2 in conversation